Mondeo
Centurion
Hi,
I'm trying to access the onClick of an image to run some javascript when the image is clicked.
document.getElementByID('imgMain').onClick = 'window.close'
But it throws an error.
Microsoft JScript runtime error: Object doesn't support this property or method
Can this be done, if so whats the correct syntax?
Many Thanks
I'm trying to access the onClick of an image to run some javascript when the image is clicked.
document.getElementByID('imgMain').onClick = 'window.close'
But it throws an error.
Microsoft JScript runtime error: Object doesn't support this property or method
Can this be done, if so whats the correct syntax?
Many Thanks