I'm interested in "writing a browser UI" in javascript...which would run inside a REAL (native) browser.
I realize that Firefox/Opera/Chrome have thousands of "extensions" that extend and alter the UI, and for everything else there are Bookmarklets. But that's not what I'm after.
This is what I'm after:
- In Chrome/Firefox/whatever, I load up a regular HTML page with some Javascript code.
- The code instantiates an Iframe called, say, MyBrowser.
- Interacting with MyBrowser in JS is just like interacting with a real browser.
- MyBrowser can load up any site or web app just like a real browser, and lets me interact with its GUI like normal.
- At its simplest, the "regular HTML page" would just have the MyBrowser Iframe, an Input text field for the address, and two Buttons for forward and back.
- But if I want to alter or extend any part of MyBrowser, I just write some JS/DOM code.
In other words, MyBrowser has all your regular JS browser API (including HTML5) features like:
window.history.back();
window.location = "http://www.google.com/";
sessionStorage.setItem("username", "John");
It occurs to me that probably possible to write a "wrapper" by hand that works like this, but I'm curious if there is a codebase out there that could help simplify this project.
-
2Would an iframe or a new browser window work? If not, please explain more about what you're trying to do.jfriend00– jfriend002011年11月09日 02:00:53 +00:00Commented Nov 9, 2011 at 2:00
-
Why? I guess you can try emulating webkit in a browserRaynos– Raynos2011年11月09日 02:03:29 +00:00Commented Nov 9, 2011 at 2:03
-
My own purpose would be to "make my own browser" with my own special features. In other words, I could code my own browser UI/workflow in JS (and "run it inside" of Chrome/Firefox/whatever).themirror– themirror2012年01月22日 22:09:52 +00:00Commented Jan 22, 2012 at 22:09
-
What does Chrome not do which your browser-within-a-browser would do?Dan Blows– Dan Blows2012年01月22日 22:38:46 +00:00Commented Jan 22, 2012 at 22:38
-
1000 things. Chrome extensions, as the OP states, are not relevant to this question.themirror– themirror2012年01月26日 00:59:46 +00:00Commented Jan 26, 2012 at 0:59
1 Answer 1
Are you thinking something like Google Chrome Frame for IE ?