[Javascript] Object doesn't support this property or method
Marcelo Simon
grillo at lazzuri.com.br
Thu Nov 14 00:00:25 CST 2002
Hi,
I have a link in a image that I want it to change the src for an iframe and for the image itself, but I'm getting the "Object doesn't support this property or method" message in IE ( and I'm only worried with this browser 5.0+ )
Here's the code:
function blahbox() {
if (document.blahbox.location.href.indexOf("i_blahbox") >= 0 ){
document.blahbox.location.href = "i_emoticons.cfm";
document.btBlahBox.src = "images/bt_blahbox.gif"
} else {
document.blahbox.location.href = "i_blahbox.cfm";
document.btBlahBox.src = "images/bt_emoticon.gif"
}
}
and here's the call for it:
<a href="#"><img src="images/bt_emoticon.gif" alt="" name="btBlahBox" id="btBlahBox" width="18" height="19" border="0" onClick="blahbox();"></a>
and here's the iframe code:
<iframe src="i_blahbox.cfm" name="blahbox" id="blahbox" width="157" height="251" marginwidth="0" marginheight="0" frameborder="0"></iframe>
Did this make what I'm trying to accomplish clear? I hope so !
TIA
Marcelo Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021114/33f0618d/attachment.htm>
More information about the Javascript
mailing list