I would like to disable a href link in javascript but only for a particular duration.
<tr><td width= 40></td><td id="idHardwareInfo_5" class="sub_newmenu_item" ><a href="javascript:fnMenuClickedCustPop()"><% _("Discovery"); %></a></td></tr>
function fnMenuClickedCustPop()
{
fnMenuClicked('XYZ.asp', 'id_5');
alert("This operation may take a few minutes to complete.Please wait...");
}
This XYZ.asp file includes a .inc file which has the js code its functionality includes executing a loop 18 times. I would like to disable the href link until that loop completes entirely from 1-18 so that in between the user can not click the link.What could be the best way to do this? PS:i am a complete Newbie to javascript. Thanks :-)