I have a page with 2 frames. Frame one is a Navigation frame with a bunch of links, and frame two displays the pages that the links call. I would like for the link for the page showing in frame two to not be clickable. Here is what I have so far:
An example of a link in the navigation page:
<a href="#" onClick="return parent.frames['welcomeframe'].checkLinks('welcome.html')">Welcome</a>
The function that is in each page that opens in frame two:
function checkLinks(thisLink){
var lgn = document.links.length;
var k = 0;
for(k = 0; k < lgn; k++){
alert(document.links[k]);
if (thisLink == document.links[k]){
alert(thisLink+ " is on this page also."
;
return false;
}
}
document.location.href = thisLink;
return;
}
Any help is great. Thanks
An example of a link in the navigation page:
<a href="#" onClick="return parent.frames['welcomeframe'].checkLinks('welcome.html')">Welcome</a>
The function that is in each page that opens in frame two:
function checkLinks(thisLink){
var lgn = document.links.length;
var k = 0;
for(k = 0; k < lgn; k++){
alert(document.links[k]);
if (thisLink == document.links[k]){
alert(thisLink+ " is on this page also."
return false;
}
}
document.location.href = thisLink;
return;
}
Any help is great. Thanks