PDA

View Full Version : Pop-Up Window Generator



dramacat14
05-31-2007, 02:49 AM
1) Script Title: Popup Window Generator

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/popwin.htm

3) Describe problem: The new window pops up as desired, but the main page also switches to the content of the popup window. How do I make the main page stay the same, and only the popup window display the new content?
Example: www.geocities.com/dramacat14/about.htm

jscheuer1
05-31-2007, 07:21 AM
You need to use return false in the onclick event. But, you probably are, as this is how it is shown on the demo page. Geocities often ignores these sorts of things and carries out the href of the link anyway. You could eliminate the href completely:


<span onclick="the onclick event">Text or Image</span>