I have an asp page that call a java script function to open a new window. this works well in Firefox, but in IE, it does not work. When I check the error on page at the bottom of the page, it gives me the error as "Invalid argument." I did check the syntax but could not find anything wrong with it. Can somebody please guide me on this.
Please find my code below
thank you
Please find my code below
Code:
function popup(studentID)
{
//alert(studentID);
var answer = confirm ("Are you sure you want to delete this student?");
var page;
page = "deletestudent.asp?id="+studentID;
if (answer)
{
window.open(page, "Delete Student","location=1,status=1,scrollbars=1,width=100,height=100");
location.reload();
return true;
}
else
{
location.reload();
return false;
}
}
Comment