programmher
Programmer
I have a link on a page that opens another page. My problem arises when the user accidentally clicks the link more than once. The information from the child form does not pass to the parent form when the link is clicked twice.
Below is the code:
<script>
onload=function(){
var lnks=document.links
for (var ii=0; ii<lnks.length; ii++){
var current=lnks[ii];
current.onclick=function(){ alert(this.href+" clicked"
;}
return false;
}
}
</script>
Can anyone advise a way to disable clicking the link more than once?
Below is the code:
<script>
onload=function(){
var lnks=document.links
for (var ii=0; ii<lnks.length; ii++){
var current=lnks[ii];
current.onclick=function(){ alert(this.href+" clicked"
return false;
}
}
</script>
Can anyone advise a way to disable clicking the link more than once?