Results 1 to 3 of 3

Thread: Jumptop.js not working

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jumptop.js not working

    1) Script Title: Jump to Top Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/jumptop.htm

    3) Describe problem: I am using this script for quite sometime. Recently, I have notice that when you click on [Top] link a new blank windows opens up. Earlier this script was working fine. Is there any problem with the script? Here is the URL on which this I have placed this script. www.travelspan.in. Please help.

  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

    Remove this from your page:

    HTML Code:
    <base target="_blank">
    That's what's causing it. Or, if you need that for your page. You can edit this line in the script:

    Code:
    crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
    to:

    Code:
    crosslogo.innerHTML='<a target="_self" href="'+logolink+'">'+displayed+'</a>'
    That (untested) should also take care of it. If not, this will:

    Code:
    crosslogo.innerHTML='<span onclick="window.scrollTo(0,0);" style="color:blue;cursor:pointer;">'+displayed+'</span>'
    - John
    ________________________

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

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank You

    Thank You John, it is now working. Thank you dynamic drive community.

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
  •