View Full Version : Iframe question


SweetWriter15
03-22-2003, 03:15 AM
The question I have is, I have an iframe on my site, and I have links in it. I want it so that when you click on the link it makes a new window. I'll add that the links are in a drop down menu, and I'm not quite sure what to do. Thanx in advance!

MaGiCSuN
03-22-2003, 05:12 PM
You need an dropdown menu that targets frames, because then the 'target' option is in it and you can add "new" to it so that it will open into a new window:

http://www.lissaexplains.com/fun.shtml#dropframe

for the dropdown menu

and this part is about the target info:

<script language="javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="yourframename");
}
}
//-->
</script>

then change the bold part to "new" and that should work

Love,
Mirna