thanks for the response, Dimandja, but that MSDN article is only explaining the concept of 'onclick' and saying that the full sequence of events - namely, a 'mousedown' and 'mouseup' - must be performed on an object for the 'onclick' event handler to be fired. in the case of my script, the full...
i've deduced that the problem is not with the event handler itself; rather IE doesn't like the "javascript:;" bit that comes before the 'onclick' handler.
it's very strange, though, that it ignores that null link when i use a different event handler and executes the script as expected.
using...
hi, i've got a one-line script that i'm using to change the 'src' of an image:
function enlargePhoto(the_photo) {
document.getElementById("large_photo").setAttribute("src","photos/" + the_photo + ".jpg");
}
i'm using the following bit of HTML to call the script:
<a href="javascript:;"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.