Hi,
I am trying to figure out how to target 2 iframes with 2 different links using javascript. So far I have found out that you can use a plain text link to do this. The problem is that I have to use a drop down list. I am at the brink of pulling my hair out over this. HELP! heres what i have
Code:<script> function twoFrameChange(one,two){ top.chart.location.href = chart; top.text.location.href = text; }</script>I don't know what I'm doing wrong here.Code:<iframe name="chart" width="459" height="412" scrolling="no" style=" margin:0; padding:0; overflow-x: hidden; overflow-y:hidden; border:none;" src="yahoo.com"> <iframe name="chart" width="459" height="412" scrolling="no" style=" margin:0; padding:0; overflow-x: hidden; overflow-y:hidden; border:none;" src="google.com"> </iframe> <form id="dust" name="dust" method="post" action=""> <label> <select name="jumpMenu" id="jumpMenu" onchange="twoFrameChange(one,two)"> <option value="('http://www.msn.com','http://www.alltheweb.com');">June 1, 2010</option> <option value="#" selected="selected">June 30, 2010</option> </select> </label> </form>



Reply With Quote
Bookmarks