Results 1 to 3 of 3

Thread: <noscript> to change target of tooltip link from # to xyz.php?

  1. #1
    Join Date
    Feb 2008
    Posts
    77
    Thanks
    25
    Thanked 1 Time in 1 Post

    Question <noscript> to change target of tooltip link from # to xyz.php?

    Please check this page and let me know if it's possible to have the Login and Sign-Up links top right of the page load a page with the 2 sign-up options and the login link load a login page if user has javascript disabled:
    http://johnwboyd.net/test/

    Resource Files
    http://johnwboyd.net/test/style.css
    http://johnwboyd.net/test/js.js
    http://johnwboyd.net/test/dropdown.js

    Thanks in advance.
    Last edited by johnwboyd; 12-26-2008 at 08:34 AM.

  2. The Following User Says Thank You to johnwboyd For This Useful Post:

    mada9369 (12-26-2008)

  3. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,925
    Thanks
    43
    Thanked 3,190 Times in 3,154 Posts
    Blog Entries
    12

    Default

    I think you mean the href not target. The noscript tag isn't intended for this. There are other strategies. The most common one for a link is:

    Code:
    <a href="xyz.php" onclick="doSomething(); return false;">Link Text or Image Tag</a>
    By returning false, the link will not execute, your doSomething(); function will instead, or if there isn't anything you want it to do onclick, just do:

    Code:
    <a href="xyz.php" onclick="return false;">Link Text or Image Tag</a>
    Either way, the non-javascript enabled browser will load the href, the javascript enabled browser will not.
    - John
    ________________________

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

  4. The Following User Says Thank You to jscheuer1 For This Useful Post:

    johnwboyd (12-27-2008)

  5. #3
    Join Date
    Feb 2008
    Posts
    77
    Thanks
    25
    Thanked 1 Time in 1 Post

    Thumbs up

    Excellent! Thank you John. This is great!

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
  •