|
Posted by Jonathan N. Little on 02/15/07 00:34
Kavi wrote:
> i have created a simple site
>
> it lists links which calls a javavscript function
>
> <a href="javascript:Convert();">Convert</a>
>
> is it possible possible to disable a link after is has been selected,
> but this i mean, not make it clickable :)
>
Yes, but don't use pseudo-protocol "javascript:" in HREF attributes.
<a href="{some real URL}" onclick="return myFunct()">...
function myFunct(){
if(someCondition==true){
return true; //link will be followed
}
else {
return false; // link will NOT be followed
}
}
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|