Click to See Complete Forum and Search --> : Disabling a textlink after click


Qben
09-02-2003, 03:54 AM
I would like to know how to disable a text link after clicking it
(so you cant click it more than one time before the page it links to loads..) .

//Qben

AdamGundry
09-02-2003, 04:38 AM
I think you could do something like this (untested):

<a href="page.html" onclick="if (!this.clicked){this.clicked = true; return true;} return false">Click me once</a>

Adam

Qben
09-02-2003, 04:43 AM
Thanks alot!
Works perfect :)