D
donpro
Hi.
I'm using DOM to manage a HTML form and so I create listeners for my
form objects that run a function when fired. The function is of the
form:
function myfunction(e) {
var myElement = getSrcElement(e);
}
function getSrcElement(e) {
e = e || window.event;
return e && (e.target || e.srcElement);
}
Question: I've run in to a situation where I need to manually call
myfunction(e) within another fnction. How do I manually pass an
object's event? I don't even know how to create it.
Thanks,
Don
I'm using DOM to manage a HTML form and so I create listeners for my
form objects that run a function when fired. The function is of the
form:
function myfunction(e) {
var myElement = getSrcElement(e);
}
function getSrcElement(e) {
e = e || window.event;
return e && (e.target || e.srcElement);
}
Question: I've run in to a situation where I need to manually call
myfunction(e) within another fnction. How do I manually pass an
object's event? I don't even know how to create it.
Thanks,
Don