W
walkerfx
Hi All,
Is there a way to access the value assigned to onmousedown for an
object? I've been searching online but can only seem to find how it is
assigned via html. What I need to do is access the value (the script
string) in javascript.
For example, I'd like to try to do something like this:
function virtualClick(objectName) {
eval(document.getElementById(objectName).onmousedown);
}
I am of course not explaining the full problem in detail, but would
appreciate any input on how to access the onmousedown value (or to know
if it even exists as a property).
Thank you,
Walker
Is there a way to access the value assigned to onmousedown for an
object? I've been searching online but can only seem to find how it is
assigned via html. What I need to do is access the value (the script
string) in javascript.
For example, I'd like to try to do something like this:
function virtualClick(objectName) {
eval(document.getElementById(objectName).onmousedown);
}
I am of course not explaining the full problem in detail, but would
appreciate any input on how to access the onmousedown value (or to know
if it even exists as a property).
Thank you,
Walker