Bonjour à Martin Honnen <ma*******@yahoo.de> qui nous a écrit :
Dave Anderson wrote:
How can I make an onchange event update the src for an IFRAME? I
would like to do it without reloading the page, is this possible?
<iframe name="iframeName" src="whatever.html"></iframe>
<select onchange="if (window.frames && window.frames.iframeName) {
window.frames.iframeName.location.href =
this.options[this.selectedIndex].value;
}">
or:
<iframe id="iframeId" src="whatever.html"></iframe>
<select onchange="if (document.getElementById) {
document.getElementById('iframeId').src =
this.options[this.selectedIndex].value;
}">
--
Cordialement, Thierry ;-)