Menu
I need to place a 2 second wait on the function listed
below. When a user clicks on a link, i need to call the
target.src = ‘/Test.aspx?referrer=’ + document.referrer;
and then wait for 2 seconds before exiting the function.
anchorList[i].onclick = function () {
var href = this.getAttribute(“href”);
if (href != ”) {
var target = new Image();
target.src = ‘/Test.aspx?referrer=’ + document.referrer;
//Wait for 2 seconds.
}
}