Link to home
Start Free TrialLog in
Avatar of intikhabk
intikhabk

asked on

outerText property not working in Javascript

outerText property works in Internet Explorer but does not work in Firefox. How to get it working in Firefox...what is the alernative in Javascript for Firefox...
Avatar of hielo
hielo
Flag of Wallis and Futuna image

>>outerText property works in Internet Explorer
Because it is an IE property only. It is NOT a "standard" property. Instead of:
obj.outerText

try:
obj.parentNode.innerHTML
Avatar of intikhabk
intikhabk

ASKER

suppose i have a table
like
<table>
 <tr>
    <td>test1</td>
    <td>test2</td
 </tr>
</table>

how do i get test1 ...i nead a javascript code which will work in IE as well as Firefox
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
u people r really very good! hats off boss.
I have been wandering since hours for solution to this problem, and i was sure that i will get solution of my problem here only but i could not get any suggestion in search list of your site.

finally i got it!

thanks!
god is great
besides other reasons "coz he made u"