Hello all
I have the following code and I want to be able to click the hyperlink associated with the td of the webpage. How do I do this?
Thanks.Please Login or Register to view this content.
James
Hello all
I have the following code and I want to be able to click the hyperlink associated with the td of the webpage. How do I do this?
Thanks.Please Login or Register to view this content.
James
Hello Jimbo77,
The href property belongs to an Anchor object which supports the Click event. You will need to get the anchor object in the table cell (TD) from the innerHTML.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Star below the post.3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Thanks very much for replying Leith. How do I find the innerHTML?
Anyone?
Hello James,
The innerHTML is property of the TD object.
This will return the HTML code associated with the table cell. This is where is gets tricky finding the object you need. If the Anchor object has an ID property then it is very easy. You can return the object directly...Please Login or Register to view this content.
If you don't have an ID then I will need to see the HTML code for the cell to help you further.Please Login or Register to view this content.
For what it is worth I solved the problem with this bit of code
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks