marky9074
asked on
Javascript Pop Up windows
A question which unfortunately asks for a multitude of answers!
Using DW MX to call a new browser window using the 'Open Browser Window', the new browser pops up OK but in the first instance always appears in the background rather than the foreground. Every instance after this is OK (in the foreground). Is there any way I can stop the first instance from opening up in the background?
Also I have noticed an annoying side effect of this. My Dad who was previewing the code on his laptop has a touch pad which offen double clicks on a single click. The result of this being that one new browser window pops up in the background whilst another one pops up in the foreground. Due to the speed of the double click the window in the foreground comes up with an error and does not display the html. Testing this a small delay is OK, but the action of a 'double click' brings up a window with an error..................... Is there any way I can only have one instance of the new window up at any one time, until of course it is shut down again.
Hope this makes sense,
Mark
Using DW MX to call a new browser window using the 'Open Browser Window', the new browser pops up OK but in the first instance always appears in the background rather than the foreground. Every instance after this is OK (in the foreground). Is there any way I can stop the first instance from opening up in the background?
Also I have noticed an annoying side effect of this. My Dad who was previewing the code on his laptop has a touch pad which offen double clicks on a single click. The result of this being that one new browser window pops up in the background whilst another one pops up in the foreground. Due to the speed of the double click the window in the foreground comes up with an error and does not display the html. Testing this a small delay is OK, but the action of a 'double click' brings up a window with an error.....................
Hope this makes sense,
Mark
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
marky9074,
hmm.. could you give me the link to your page? Without looking at the exact code I am not sure what happens with your page :-)
-klykken
hmm.. could you give me the link to your page? Without looking at the exact code I am not sure what happens with your page :-)
-klykken
ASKER
Hi Guys,
Thanks for the help, after changing it back to javascript:;, removing the target="_blank" and naming the window the same as the html file all my problems appear to have dissapeared. The latter fixing my problem with the window being in the background as well. At the moment have not had any reports of any double windows.....
www.marky9074.f2s.com/home.htm
Thanks for your help, it was much appreciated,
Mark
Thanks for the help, after changing it back to javascript:;, removing the target="_blank" and naming the window the same as the html file all my problems appear to have dissapeared. The latter fixing my problem with the window being in the background as well. At the moment have not had any reports of any double windows.....
www.marky9074.f2s.com/home.htm
Thanks for your help, it was much appreciated,
Mark
Your welcome, and best of luck Mark.
Thanks.
Thanks.
ASKER
I had tried it both ways with Javascript:; and a normal link in the property inspector link. Either way, if you are too quick it pops a window up with errors....
I am most gratefull for the link though, as the 'return false' is most usefull if you keep the link rather than the null javascript method. I didn't know that. When testing in IE only the javascript window(s) come up, whereas in Mozilla both the js and a new browser come up, and I had wondered why!
Thanks,
Mark