View Full Version : <noscript> to change target of tooltip link from # to xyz.php?
johnwboyd
12-25-2008, 05:26 AM
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.
jscheuer1
12-26-2008, 06:01 PM
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:
<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:
<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.
johnwboyd
12-27-2008, 05:19 AM
Excellent! Thank you John. This is great!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.