Hi,
I have an IMG Tag that have an onclick event. On
depends on wich pages is load, i would like to change the
onclick src.
For exemple, the original code is
<Img src = "Something.gif" ID = "Test" onclick
= "window.open('apage.htm','_self');"
when another page will be load, i would like that the
onclick on my image's set to "window.open
('anotherpage.htm','_self');".
Is it possible ?
I've try to make something like that
Test.onclick = "window.open('anotherpage.htm','_self');"
but it doesn't work. Can someone help me ?
Thanks
Josée
Steve Fulton - 20 May 2004 19:55 GMT
> I have an IMG Tag that have an onclick event. On
> depends on wich pages is load, i would like to change the
[quoted text clipped - 13 lines]
> Test.onclick = "window.open('anotherpage.htm','_self');"
> but it doesn't work. Can someone help me ?
Test.onclick = function(){window.open('anotherpage.htm','_self');}

Signature
Steve
One of the advantages of being disorderly is that one is
constantly making exciting discoveries. -A. A. Milne