GeekZilla
Firefox doesn't use parentElement, it uses parentNode
JavaScript in FireFox doesn't support the function parentElement. You should use parentNode instead.
Example:
myElement.parentNode;
Paul is the COO of kwiboo ltd and has more than 20 years IT consultancy experience. He has consulted for a number of blue chip companies and has been exposed to the folowing sectors: Utilities, Telecommunications, Insurance, Media, Investment Banking, Leisure, Legal, CRM, Pharmaceuticals, Interactive Gaming, Mobile Communications, Online Services.
Paul is the COO and co-founder of kwiboo (http://www.kwiboo.com/) and is also the creator of GeekZilla.
Comments
Brle
said:
Thank you very much, I spent whole afternoon trying to make Firefox run javascript which use parentElement!
Yagnesh
said:
thnx it worksssssssss
manish
said:
thanks
tinku
said:
Thats a small but grate post. Very much helpful. Thanks a lot Paul.
Hemant
said:
This is very good post thanks yarrrrrrrrrrr
Neil
said:
or to put it more accurately:
"Javascript in IE doesn't support the function parentNode".
W3C DOM defines a parentNode property of the Node interface.
IE defines a proprietary parentElement.