eladr
asked on
change iframe src
im trying to to do something very simple.
this is my iframe:
<iframe align="<%=align%>" designMode="on" id="ifrm" width="100%"></iframe>
when the user selects something from the combo box i want to change the iframe src
attribute.
this is the code:
<script>
function getPropsIntoIfrm(codeClien t)
{
ifrm.document.src = "http://walla.co.il"
}
</script>
well...it's not working.
elad
this is my iframe:
<iframe align="<%=align%>" designMode="on" id="ifrm" width="100%"></iframe>
when the user selects something from the combo box i want to change the iframe src
attribute.
this is the code:
<script>
function getPropsIntoIfrm(codeClien
{
ifrm.document.src = "http://walla.co.il"
}
</script>
well...it's not working.
elad
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
document.frames is not the standard array it is window.frames
Michel
Michel
ASKER
thanks avner - and not for the first time...
eladr , notice the other experts comments, My solution is IE4+ only and will not work on NS, but I guess you got the general idea.. luck.
ASKER
yes.
i dont care about ns...
(intranet site)
elad
i dont care about ns...
(intranet site)
elad
document.all("ifrm").src = "http://walla.co.il"
however
window.ifrm.src = "http://walla.co.il"
would be better for compatibility
Michel