Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
I am using my chrome extension which will extract the html content of page I visit. and it will have that extracted content in its default popup page. so that I can save it in desktop as a html page. 

But my problem is, the popup window gets closed and stops working when I clicked out of that extension. So I decided to create that extension popup as new window. So that It wont gets closed until I close that.

Here I need your Solution, Because the created window is giving only the plain/default html of the Url I gave. [For Example : I'm giving the extension popup url as the url to create as a new window. but i need the binded html of extension popup to bind in that newly created window.

Kindly give me solutions.


What I have tried:

[Manifest.json]
{
"manifest_version": 2,
"version": "1.0",
"browser_action": {
"default_icon": "New.png",
"default_popup": "ParsingExtension.html"
}
}

In the script refered in that default popup will get the web page content and save that content.
In that script I'm using

chrome.windows.create({
Url : "Popup.html",
width : "500",
height : "800",
type : "popup"
});
So that it will create a new Window but its simply giving empty default html and not the binded popup of extension.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900