Hi there,
I am facing some cross browser problems with my Javascript.The following scripts works well with IE but not with Netscape. I am using NN 4.7
function resetImageSize(w,h){
document.images["imgMain"].width=w;
document.images["imgMain"].height=h;
}
Why it is not changing the size in NN? I tried alert(document.images["imgMain"]) which returns [object/image].
When i try alert(document.images["imgMain"].width) or alert(document.images["imgMain"].height) it returns the sizes i have specified in the image tag in HTML, not the new one. Please help....
Thanks,
Haris.
I am facing some cross browser problems with my Javascript.The following scripts works well with IE but not with Netscape. I am using NN 4.7
function resetImageSize(w,h){
document.images["imgMain"].width=w;
document.images["imgMain"].height=h;
}
Why it is not changing the size in NN? I tried alert(document.images["imgMain"]) which returns [object/image].
When i try alert(document.images["imgMain"].width) or alert(document.images["imgMain"].height) it returns the sizes i have specified in the image tag in HTML, not the new one. Please help....
Thanks,
Haris.
Comment