I have below javascript function . I am trying to open a jsp in new window and pass some values from this function :
function editStudent(fname){
alert("hi");
var editWindow = window.open("studentEdit.jsp?fname="+fname, " ", "width=300,height=300");
editWindow.focus();
}
Above javascript function will be called on button click. New window is opening but the parameter is returning 'null' in the studentEdit.jsp