faqts : Computers : Programming : Languages : JavaScript : Links

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 7 people (100%) answered Yes
Recently 7 of 7 people (100%) answered Yes

Entry

How can i stop user to click on the same poup link on the same time

Oct 13th, 2003 02:35
Mister Sokrates, Ravi Baid,


Is this what you need?

<a href="javascript:var a;if(a==1){alert('Cant do popup dwice!')}else
{a=1;alert('Popup function here');}">popup</a>


if it will not work (it does on ie55) the n try that way:

<script>
var a = 0;
</script>

<a href="javascript:if(a==1){alert('Cant do popup dwice!')}else
{a=1;alert('Popup function here');}">popup</a>