English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories



JavaScript Popup Example 3



JavaScript Popup Example 3





This above script is suppsoed to open 2 different pop ups in different places on the page but it doesnt work. Why doesnt it work? Can you test it please?

10 points for correct code to make 2 windows open

2007-02-23 22:59:45 · 3 answers · asked by peter s 1 in Computers & Internet Programming & Design

3 answers

Popup Blocker, that's why! You're opening windows on load of page automatically, not in response to user action. It will not work in XP SP2 in IE with the default settings.

2007-02-23 23:40:25 · answer #1 · answered by Raymond 3 · 0 0

The following code opened two popups in IE7 on Windows XP with popup blocker turned off.



JavaScript Popup Example 3



JavaScript Popup Example 3



2007-02-28 04:25:23 · answer #2 · answered by Atif Majid 3 · 0 0

It's supposed to open the popups in different places? No kidding! With this code?

testwindow.moveTo(0,0);
testwindow1.moveTo(0,0);

Change the coordinates for one of them and you'll see it works.

2007-02-24 07:19:04 · answer #3 · answered by felixp7 2 · 0 0

fedest.com, questions and answers