Forum Moderators: open

Message Too Old, No Replies

Trouble keeping popups on top

using onBlur=self.focus()

         

seoArt

3:00 am on Jul 24, 2005 (gmt 0)

10+ Year Member



I've tried keeping my popups on top using:

<BODY onBlur=self.focus()>

in the body tag of the pop up window. I also did it with quotes around self.focus() as some javascript sites have suggested.

I have a page with numerous buttons that each open javascript windows when clicked. Once one is opened, the rest open in the same window, and I want that window to stay on top. When the main page is clicked, the popup gets buried.

Any help is appreciated.

kaled

10:42 am on Jul 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could try

<script>
onBlur=focus;
</script>

Kaled.

seoArt

3:05 pm on Jul 24, 2005 (gmt 0)

10+ Year Member



Hmm.. I couldn't get that to work either. What can I add to get them to just open each in a new window?

Here's part of the script I'm using to open the popups:

<script type="text/javascript">
<!--
function myPopup1() {
window.open( "http://www.example.com/1a.htm", "myWindow",
"status = 0, height = 375, width = 500, resizable = 0, top = 200, left = 150" )
}
function myPopup2() {
window.open( "http://www.example.com/1b.htm", "myWindow",
"status = 0, height = 375, width = 500, resizable = 0, top = 200, left = 150" )
}

seoArt

11:50 pm on Jul 25, 2005 (gmt 0)

10+ Year Member



Is there something I can add to open the popups, each in a new window?

kaled

11:58 pm on Jul 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never needed to use window.open() much, but I think if you remove the name, a new window will open each time.

Kaled.