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

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:

Resource Files

Thanks in advance.

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.

12-27-2008, 05:19 AM
Excellent! Thank you John. This is great!