...

View Full Version : buttons



Viktor87
04-16-2005, 04:22 AM
Hey guys,
I was trying to set up few buttons so they will open pages in
the frame but I stuck, I just don't know where to stick the frame
content so it will open the page in the frame I need.
For example this script at javascriptkit.com:
http://javascriptkit.com/script/script2/urljump.shtml


This will be open in the new/current window, how can I make it
open the window in the "Main" frame.

Thanks for any help!

Mr J
04-16-2005, 08:11 AM
Change this line

window.location=document.jumpurl1.jumpurl2.value


to


parent.frameName.location = document.jumpurl1.jumpurl2.value

where frameName is the name of your target frame

Viktor87
04-16-2005, 06:09 PM
Thanks for the info.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum