Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am unable to retrieve an item using namedItem in Safari
The following worked in IE but not in Safari . In IE the table with "table1" is correctly returned but in Safari the first table is returned.
var x = document.getElementsByTagName("table").namedItem("table1");
Please tell me how to fix it in Safari and IE without having to loop through items.

Thanks ,
Sarah
Posted
Updated 5-Oct-10 2:33am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900