Much thanks to Kor for:
<script>
function redir(){
if(parent.frames.length==0){
window.location="password.html";
}
}
window.onload=redir;
</script>
Kor is a genius. However, I have a slight problem. The page I want to use this on has an iFrame in it, which seems to be stopping the script from working properly. It doesn't redirect like it should. Is there a way to fix it? Or must I remove the iFrame?
<script>
function redir(){
if(parent.frames.length==0){
window.location="password.html";
}
}
window.onload=redir;
</script>
Kor is a genius. However, I have a slight problem. The page I want to use this on has an iFrame in it, which seems to be stopping the script from working properly. It doesn't redirect like it should. Is there a way to fix it? Or must I remove the iFrame?
Comment