The javascript is not multi-threaded so you can block all navigation in your code with a simple Boolean test. Something like this.
// make this a global var in your anonymous function...
var canNavigate = true; //set this in the construction of the page like in ready:
function clickLink1(event){
if (canNavigate){
canNavigate = false;
// do the navigation
}
}
function clickLink2(event){
if (canNavigate){
canNavigate = false;
// do the navigation
}
}
-Jeff
Jeff Sanders (MSFT)