Forum Moderators: open

Message Too Old, No Replies

How to keep new window on top.

         

ThomasAJ

5:21 am on Mar 7, 2006 (gmt 0)

10+ Year Member



I click on a small picture in a.html and a new window opens (b.html) with a larger picture. b.html is on top. I use window.open.

As I click on another picture in a.html the b.html window goes behind and stays behind the a.html with the new picture.

In other words b.html cannot readily be seen.

How do I keep it on top.

prasanth jvrs

5:30 am on Mar 7, 2006 (gmt 0)

10+ Year Member



Hi,

Use top attribute for window.open....and give diff...for each one...

Trace

8:42 pm on Mar 7, 2006 (gmt 0)

10+ Year Member



in file b.html, tell it to set focus on load.

Should look something like this:

<SCRIPT TYPE="text/javascript">
<!--
window.focus();
//-->
</SCRIPT>

or

<body onLoad="window.focus();">

ThomasAJ

1:17 am on Mar 8, 2006 (gmt 0)

10+ Year Member



Many thanks