Looking to create an endless loop of links that never stop? I need assistance achieving this.
setTimeout(linkToGoogle, 5000);
function linkToGoogle() {
document.getElementById('myAnchor').innerHTML="Visit Google";
document.getElementById('myAnchor').href="http://www.google.com";
setTimeout(linkToStackOverflow, 5000);
}
function linkToStackOverflow() {
document.getElementById('myAnchor').innerHTML="Visit Me";
document.getElementById('myAnchor').href="http://www.stackoverflow.com";
setTimeout(noLink, 5000);
}
function noLink() {
document.getElementById('myAnchor').innerHTML="Visit None";
document.getElementById('myAnchor').href="";
}