Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

Webbrowser's text from a frame

I have a webbrowser control in my app.
I load an html from my local machine that submits the form to another location (site).

after submission, i found 2 frames in my webbrowser as a response from the site.

I want to access the text of the first frame when the download is complete.

I tried to access it as we simply do in frameless html pages (in document complete event) but doesnt work.
eg.      webbrowser1.Document.body.innerHTML


the following method gives me the frame with an href=<site location> and not the source of the frame:
        webbrowser1.Document.All.tags("frame")(0).src


Can anyone tell the procedure of reading text of the frame from the webbrowser?

thanks
0
Neeraj Soni
Asked:
Neeraj Soni
  • 2
1 Solution
 
crazymanCommented:
?
 webbrowser1.Document.All.tags("frame")(0).document.body.innerHTML
0
 
crazymanCommented:
or
 webbrowser1.Document.frames("FrameName").document.body.innerHTML
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now