markarra
05-30-2006, 12:19 PM
I want to Link from the list in a dropdown box. I would like for the Link to show in the Iframe I have created.
|
Click to See Complete Forum and Search --> : How do I create a Link in an Iframe markarra 05-30-2006, 12:19 PM I want to Link from the list in a dropdown box. I would like for the Link to show in the Iframe I have created. KDLA 05-30-2006, 02:16 PM Name your iframe, then specify that name as the target. <iframe name="my-iframe"> <a href="link.htm" target="my-iframe">link</a> markarra 05-30-2006, 03:00 PM So do i use this coding <a href="link.htm" target="my-iframe">link</a> for each one of the option in the dropdown box (list) here is the current coding (below) I am using for the dropdown box (list). <form name="form5"> <select name="menu5" onChange="if(this.value!="nogo"){MM_jumpMenu('parent',this ,0)}" style="font-size:9px; color:#000000; background:#C1C1C4"> <option value="page 1.htm">page 1</option> <option value="page 2.htm">page 2</option> <option value="page 3.htm">page 3</option> <option value="page 4.htm">page 4</option> <option value="page 5.htm">page 5</option> </select> </form> Here is the current coding (below) I am using the my Iframe. <iframe src="home-text.htm" width=90% height=53% frameborder="10" marginheight="0" marginwidth="0"> </iframe> Where do I put the follow coding? <iframe name="my-iframe"> KDLA 05-30-2006, 03:09 PM Name your iframe (whatever you want - I was just calling it "my-iframe" for the example). <iframe src="home-text.htm" width=90% height=53% frameborder="10" marginheight="0" marginwidth="0" name="my-frame"> </iframe> Since you've got a drop-down menu, you'll want to change the 'parent' code (which would open the link in the same window) to my-frame: <form name="form5"> <select name="menu5" onChange="if(this.value!="nogo"){MM_jumpMenu('my-frame',this ,0)}" style="font-size:9px; color:#000000; background:#C1C1C4"> <option value="page 1.htm">page 1</option> <option value="page 2.htm">page 2</option> <option value="page 3.htm">page 3</option> <option value="page 4.htm">page 4</option> <option value="page 5.htm">page 5</option> </select> </form> If this doesn't work, you may need to change your javascript a little. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |