[Javascript] window.open() not working in onLoad() of Mozilla 1.5
Cutter (JavaScript List)
java.script at seacrets.com
Sat May 1 07:53:00 CDT 2004
That is because window.open(), when not used in conjunction with a
clickable area/link, is considered "popup" code. Mozilla's built in
popup blocker would supress the event. This is standard in every browser
available now with the exception of IE, but that is being corrected when
XP Service Pack 2 is released later this month.
Cutter
Antony Paul wrote:
>Hi all,
> I have problem in opening a new window from the onLoad() event of the body
>in Mozilla 1.5. It is calling another function which opens a new window. If
>I call the function in a button click it works.
>This is syntax I used
>var x = window.open("newwindow.jsp","name","toolbar=no,location=no");
>
>It is invoked in onLoad();
><body onLoad="winOpen()">
>
>what is wrong with it. It is not giving any error in the JavaScript console.
>
>Antony Paul
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
More information about the Javascript
mailing list