FireEvent in firefox
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
In ie we can fire the event from popup window to opener as opener.document.all('b1').fireEvent("onclick"); b1 - is button in parent. how to implement this in firefox?
In Firefox (or anything else but IE for that fact) you cannot use document.all which is a good reason to try to avoid it. Therefore instead of document.all you should use getElementById such as: document.getElementById("b1") Also, in Firefox you don't have fireEvent. You could instead either dispatchEvent (as described here: http://developer.mozilla.org/en/docs/DOM:element.dispatchEvent) or you could retrieve the handler yourself and call it explicitly
Cheers, Dani