Using the JavaScript event

If you have a function, you can add the following to the top, to capture the element that caused it to fire.

if (navigator.appName == "Microsoft Internet Explorer"){
    ev = window.event.srcElement;
}
else{
    ev = this;
}

You can then refer to it else where, like getting the elements ID.

element_id = document.getElementById(ev.id);

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.