I had a perfectly good method of breaking out of frames but when I tried to trigger it using onclick the think can not find the object parent.window.realchoices.location. Here is what I did:
function closeHelp() {
top.location.href=parent.window.realchoices.location.href;
}
"the above is in a set of script tags"
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript://" target="_top" onclick="javascript:closeHelp()" alt="Press alt plus Q and then enter to quit help" accesskey="Q" title="Close" > <img src="x.jpg" width="16" height="16"> </A>
I tried many variations and it won't work. My original method worked like a dream.
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:location.href=parent.window.realchoices.location.href" target="_top" alt="Press alt plus Q and then enter to quit help" accesskey="Q" title="Close" > <img src="x.jpg" width="16" height="16"> </A>
My boss encourgaed me to use onclick but it just won't work. for some reason.
function closeHelp() {
top.location.href=parent.window.realchoices.location.href;
}
"the above is in a set of script tags"
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript://" target="_top" onclick="javascript:closeHelp()" alt="Press alt plus Q and then enter to quit help" accesskey="Q" title="Close" > <img src="x.jpg" width="16" height="16"> </A>
I tried many variations and it won't work. My original method worked like a dream.
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:location.href=parent.window.realchoices.location.href" target="_top" alt="Press alt plus Q and then enter to quit help" accesskey="Q" title="Close" > <img src="x.jpg" width="16" height="16"> </A>
My boss encourgaed me to use onclick but it just won't work. for some reason.