PDA

View Full Version : Open a URL in a new window


agentOOjoe
11-13-2006, 10:01 PM
Hi,

Of course I know how to open a URL in a new window using the _blank target command, i am wondering something different.

here is what i am starting with:

getURL("https://www.example.com", "_blank", "GET");

now....

when this is run, i want it to open in a new window... but only the first time it is clicked. Every time after that, i want it to open in the same window that was created from the first click. That way, a new window isn't created everytime the link is clicked.


thanks very much for any help

anonymous
11-13-2006, 10:11 PM
Then open a popup...

http://www.flash-db.com/PopUp/

http://www.kirupa.com/developer/mx/centered_popup.htm

agentOOjoe
11-14-2006, 12:24 AM
ok, i tried the popup method.

Here is what i have:

getURL("javascript:openNewWindow('https://www.example.com','ShopCart','height=200,width=250, toolbar=no,scrollbars=no')", "", "GET");

however, it wont load the page i am trying to access and it seems to be opening new popups each time, which is what im trying to stop.

Is it possible that i might be having some problems with built in security in firefox or something? I made sure the popup blocker was disabled when i tested this.