Linking from forms to iframes?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Gappa
Forum Contributor
Posts: 119
Joined: Fri May 23, 2003 10:02 am

Linking from forms to iframes?

Post by Gappa »

Something I am not quite sure about

I am using a form...

<form>
<p align="center">
<select name=url onchange="window.location=url.value;">
<option>Select...</option>
<option value="1.html>1</option>
<option value="2 deftones.html">2</option>
<option value="3.html">3</option>
<option value="4.html">4</option>
<option value="5.html">5</option>
<option value="6.html">6</option>
<option value="7.html">7</option>
</select>
</form>

This form is basically just a bunch of links, but how do i get it to target an IFRAME named content rather the target the entire page?

thanks
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

<select name=url onchange="getElementById('iframes_id').location=url.value;">
Gappa
Forum Contributor
Posts: 119
Joined: Fri May 23, 2003 10:02 am

Post by Gappa »

Thanks... I feel so stupid hahaha :roll:
Post Reply