Hi All,

I want to access the content of a frame and access an anchor to get
the href (so that I can fire it).

The webpage has multiple frames and when I try window.document, it
gives one of the window. I tried top.document to get the frame I
wanted, that worked. But when I access
contentDocument.firstChild.innerHTML on that frame, it gives me the
content, but that is not the content I see when I use DOM Inspector.
In DOM Inspector, I can see the anchor element that I want to access
in the frame(mainFrame).

This is what I use to get the html
top.document.getElementsByName("mainFrame")
[0].contentDocument.firstChild.innerHTML


MORE DETAILS
-------------------------
The webpage I try is
http://epaper.timesofindia.com/Default/Client.asp?Daily=TOIM&login=default&Enter=true&Skin=TOI&GZ=T&AW=1245845695578

You can see the acnhor, it is the next page link

and the anchor tag I want to access is in mainFrame
<A href="/Default/Scripting/ArchiveView.asp?
Daily=TOIM&amp;AppName=1&amp;login=default&amp;Enter=true&amp;Skin=TOI&amp;GZ=T&amp;BaseHref=TOIM
%2F2009%2F06%2F24&amp;AW=1245834196578&amp;Page=3"><IMG border="0"
title="Next Page" alt="Next Page" src="/Default/Layout/Images/TOI/
Buttons/nextPage.gif"/></A>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to