Hi experts! I getting the following error message from Firefox, for the given code
Error: uncaught exception: Permission denied to get property Window.resizeTo
Error: uncaught exception: Permission denied to get property Window.resizeTo
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
var w;
var x=400;
var y=80;
function showPopup(){
w=window.open('http://www.google.com',null,'width=400,height=80,scrollbars=0,menubar=0,toolbar=0,resizable=1');
resizeWindow();
}
function resizeWindow(){
w.resizeTo(x,y);
if(x>=700){
w.resizeTo(x,y);
y++;
}
else{
x++;
}
if(y<=300){
setTimeout("resizeWindow()",1);
}
else{
clearTimeout("resizeWindow()",1);
}
}
</script>
</head>
<body>
<input type="button" value="Show Popup" onclick="showPopup()" />
</body>
</html>
Comment