I am able to change the source of an iframe very easily with a "button" click. But no matter what I try, I can't make the same happen with the use of a dropdown.
This works:
<html>
<body>
<a href="google.com" target="iframe">google</a>
<iframe name="iframe" src="yahoo.ca"></iframe>
</body>
</html>
But this does not:
<html>
<body>
<form name="change">
<select name="options" target="iframe">
<option><a href="google.com" target="iframe">google</a></option>
</select>
</form>
<iframe name="iframe" src="yahoo.ca"></iframe>
</body>
</html>
Any advice would be greatly appreciated. I found other posts similar, but all involved the use of arrays - which I don't believe I should need?
i have used this reference and another one, and came with this working example:
Actually i needed to reload multiple iframes on dropdown change (3 different iframes on dropdwon choice), so i have ended up with this:
You need to use JavaScript