Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

How to Get HTML content of the currently open tabs in Firefox on windows 7(desktop) in .net C# windows application?


We are making an .net windows app in c#. so we need to get the HTML of all the currently open firefox tabs in our application. Can you please advise or suggest any plugin or any way we can connect our .net application to Mozilla firefox to get the HTML of the web pages currently open in the users Firefox window.

Our aim is to get the HTML of the web pages from Firefox of currently open tabs.

Additional System Details


  • User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.160 Safari/537.22

More Information

Amit Kumar Thakur 83 solutions 863 answers

you can get html of currently opened tabs by going to every page and do (right click + view source page) . you can't get all of them at one place.

Question owner

I know that i need the HTML document in my c# application that going to run in the background of windows, no user interaction will be there.

Amit Kumar Thakur 83 solutions 863 answers

Do mean to say that you want to include html page to your C# program which you get after clicking the see view source?

Question owner

Yes, means like suppose if Firefox is running on my machine and in that my mail Inbox is open "https://mail.google.com/mail/u/0/?shva=1#inbox" then from my c# application i want this page HTML document or the view source content in my application.

Amit Kumar Thakur 83 solutions 863 answers

nope... you can't import html pages like the way you want.

  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

Try to ask advice at the MozillaZine "Mozilla Development forum".

You need to register at the MozillaZine forum site in order to post at that forum.

Modified by cor-el