homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
JavaScript - controlling a pop-up location
Our pop-ups are for definitions of GIS maps - but there's trouble
Lextech




msg:1487867
 7:18 pm on Jun 27, 2002 (gmt 0)

Our pop-ups are for definitions of GIS maps - but there's trouble. Sometimes, the pop-up opens up over the link buttons. The definition pop-up window is set to open onMouseOver, not on click. So, if the window pops open over the button, it continually tries to open and "flashes". Is there a way to fix this with some extra code that will cause the popups to open only in the top, left of the parent window? I got the script from a free source, I don't write JS, so I don't know how to fix this. Thanks for any help.

 

dabrisz




msg:1487868
 7:39 pm on Jun 27, 2002 (gmt 0)

I think this may help?? I don't write js, but I do use this script for something similar.

Place this script within the header tag. This javascript will make the window the "active" window and reposition it on the screen. It will pop-up in the upper right for a fraction of a second (depending on speed of computer) and relocate to the coordinates you provide.

<!--
self.focus()
self.moveTo(250,375)
//-->
<!--
function parent(url) {
opener.location = url;
}
//-->

toadhall




msg:1487869
 7:42 pm on Jun 27, 2002 (gmt 0)

Hi Lextech

Another source that may help:

[webmasterworld.com ]
... messages 4,5, and 6.

BTW I got this by doing a site search with the phrase "javascript new window location". The site search facility really works well - access it from the top of the page.

Lextech




msg:1487870
 7:50 pm on Jun 27, 2002 (gmt 0)

Excellent - I'll check out these references and see how it goes right now....thanks!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved