Reply to topic
New Window
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 764
Location: Newark, De
Reply with quote
If using code that opens a new pop-up window on a website, is there a way to force that popup to stay in front of the current window, even when the original window is clicked on again?

If not, can anyone tell me what is used to make 'floating windows' that accomplish this? And how to get their position to stay fixed relative to the browser window (i.e. when you scroll the window stays in the same place)
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1022
Location: Felton, Delaware
Reply with quote
put this in the HEAD section of your page:

Code:
<script language="javascript">
    window.focus();
    window.moveTo(1,1);
</script>


that will keep the window on top... and the second line will keep the window in the same place. However, this only occurs when the window is loaded. Im not sure how to just get it to stay on top all the time so to speak.
bobclingan
Forum Regular

Joined: 16 Sep 2004
Posts: 271
Location: Abingdon, MD
Reply with quote
Jamie,

You can check out the javascript function showModalDialog() I believe this does what you want.

--Bob
neon


Joined: 03 Dec 2004
Posts: 24
Reply with quote
Also <body onload="self.focus()>
New Window
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic