Forum Moderators: open
in IE, its simply this (code before guarentees the object is an image):
img.onclick = function (e) {window.open(window.event.srcElement.src)} i for the life of me can't find the NS/FireFox/Mozilla equiv of "window.event.srcElement.src", i am just currently saying:
img.onclick = function (e) {alert('Image Resized to ' + MaxWidth + ' pixels')} i'd like it to work with non-IE if someone could point me how i can get the "src" attribute of the image
- Thanks in advance