I have this script:
function postBackByObject(e) {
var o = window.event.srcElement || e.target;
if (o.tagName == \"INPUT\" && o.type == \"check
Attaching the event is a solution but there's an alternative one that could be helpful for other people facing the same problem, after a long search I found out that:
Event object is only reconized by firefox if you send explicitly the 'event' from the function
So the problem occurs because window.event
is not recognized by Firefox, and the solution is to pass event
to the function, your code will be :
function postBackByObject(e) {
var o = e.srcElement || e.target;
if (o.tagName === "INPUT" && o.type === "checkbox") {
__doPostBack("", "");
}
}
And you can still call it in your inline HTML passing event
as a parameter:
onclick="postBackByObject(event);"