View Full Version : Hot Keys with en embedded frame target
kunce2000
09-07-2005, 04:23 AM
http://www.dynamicdrive.com/dynamicindex5/button1.htm
I'm using the script that now supports Mozilla Fire Fox 1.0. I would like to have the Hot Keys target an embedded frame in the page instead of the replacing the entire page?
jscheuer1
09-07-2005, 02:19 PM
Just change each occurrence of:
window.location=dest[i]to:
document.frame1.location.href=dest[i]where 'frame1' is the name of your iframe or frame:
<iframe name="frame1"></iframe>
kunce2000
09-16-2005, 04:30 AM
Your suggestion was simple enough, but when I made the change the hot keys stopped working all together?
I edited the code from:
document.frame1.location.href=dest[i]
to
window.frame1.location.href=dest[i]
Now it works. Thanks, for the help.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.