Heres our script
function Exit()
{
var bye;
bye=document.this.location.href
if(bye!=(“58001.html”,”58001.htm”,”58002.html”,”58002.htm”,”58003.html”,”58003.htm”,”58004.html”,”58004.htm”,”chooseBottom.htm”,”chooseTop.htm”))
top.frames[‘ProductBottom’].location=”ChooseBottom.htm”;
}
<body onUnload=”javascript:Exit();”>
we have 2 frames, if you click to a different page in the bottom frame, we want the top frame to default back to the home page. But certian pages should not cause this switch.
We are trying to make the variable “bye” equal the currect page href. Then check that agains the list of acceptions, it if its NOT on the list, then change the top frame location.
doesnt seem to be working but i dont know why.
thanks for the help