Results 1 to 2 of 2

Thread: Pop-Up Window Generator

  1. #1
    Join Date
    May 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pop-Up Window Generator

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <span onclick="the onclick event">Text or Image</span>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •