mstolton
07-05-2008, 06:13 PM
I have a drop down box within an iframe. I would like it so that when the drop down box is used the entire page loads outside the borders of the iframe and the iframe disappears. I've been trying to change the below code but no luck whatsoever?! Is there anyone clever enough and kind enough out there to amend my below code, it would be a great help!!
<form name="jumpy">
<p><select style="width:350px" name="example" size="1" onChange="gone()">
<option value="">Select</option>
<option value=""></option>
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.altavista.com">Alta Vista</option>
</select>
<script language="javascript">
<!--
/*Jumpy combo box credit:
JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScripts here!
*/
function gone()
{
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
//-->
</script>
</p>
</form>
<form name="jumpy">
<p><select style="width:350px" name="example" size="1" onChange="gone()">
<option value="">Select</option>
<option value=""></option>
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.altavista.com">Alta Vista</option>
</select>
<script language="javascript">
<!--
/*Jumpy combo box credit:
JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScripts here!
*/
function gone()
{
location=document.jumpy.example.options[document.jumpy.example.selectedIndex].value
}
//-->
</script>
</p>
</form>