views:

109

answers:

1

It certainly runs on IE6.

Why doesn't this JavaScript run in Mozilla Firefox?

<html>
<head>
 <title>JavaScript Popup Example 3</title>
</head>
<SCRIPT language="JavaScript1.2">
function MyClass()
{
    this.OpenWindow = function()
    {
        var r = window.open ('', 'mywindow', 'location=1,status=1,scrollbars=1,width=100,height=100');
     r.moveTo(0,0);
     r.location.href = 'http://www.google.com';
    }

}
</SCRIPT>
<body onload="javascript: new MyClass().OpenWindow()">
<H1>JavaScript Popup Example 3</H1>
</body>
</html>
+9  A: 

It runs just fine in my FF. For me the popup blocker is catching it.

Did you notice that little bar just below the tabs selection

alt text

Check here for more information + images: FF Pop-up blocker

jitter
Works for me, too.
Rob