I cannot get this small script to run with Mozilla --

*******************************************
  <script language="Javascript">
var exit=true;
     function xit()
     {
   if (exit)
 
window.open('http://primeinc.net/golf.htm','asjdfh','toolbar=0,menubar=0,scrollbars=no,status=0,resizable=no,top=50,left=100,height=482,width=550');
}

</SCRIPT>
*******************************************

The JavaScript console returns this message --

"Error: uncaught exception: [Exception... "Component returned failure 
code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]"  nsresult: 
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: 
http://primeinc.net/seminar.htm :: xit :: line 11"  data: no]"


This script attempts to open a new window upon exit fo the previous window.

Can I do this under Mozilla?

Thanks,


Reply via email to