Posted by David Dorward on 11/13/08 11:54
bradley_d_watkins@hotmail.com wrote:
> Is there any way of accessing the tables appearing on a web-page that
> would return an array of their ID's in an array type form?
> I have to hide some of their rows, but dont know what their ID's are!!
document.getElementsByTagName('table') will return a collection of HTML
elements. No need to deal with ids.
> The problem is that i have to access a dynamically changing web page
> and have to know the tables ID's. However the trick comes in when none
> of the tables were given ID's.
You can't get an id from an element that doesn't have an id.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|