]>
This splits the content area of the browser window as you like. It will help you in various cases. For example, to compare multiple webpages, to show a calendar always, and so on.
You can split browsers over and over. Status of split browsers are saved, and automatically restored on the next startup.
This extension cannot work with Content Holder. You must uninstall it before you install this.
See the FAQ if you meet troubles. When you cannot find out solutions from the page, throw bug reports to board or by E-mail, please. And, the RSS is available for tracking latest versions.
Released version includes following language packs:
Split example. After you split browser, new area becomes a tiny browser.
There is some ways to split window.
Click popup-button on top/bottom/left/right edges of the content area.
You can split browser infinitely, as many as your RAM and your screen allow. Enjoy split and split to your heart's content!
Drag and drop is available to load links, bookmarks, and so on, into split browser. If you drag the toolbar of split browser, you can load the page in another split browser.
Split browsers can be closed by their closebox. "File" > "Close All Split Browser" closes all of them at once.
Version 0.3 or later includes tabbed browsing feature. You can open new tab in split browsers, by "New Tab" menu in the context menu in the toolbar of split browsers, or middle click links in them. (But this feature doesn't work with TBE or TMP. They are designed for environments without multiple "tabbrowser" widget.)
You can tile all of tabs as split browsers, and, gather split browsers to tabs. If the Multiple Tab Handler is available, you can tile tabs with selection.
SplitBrowser.activeBrowsergBrowser, getBrowser(), or document.getElementById('content') to make compatible your code to this extension.SplitBrowser.browsersSplitBrowser.collapseAllSubBrowsers()SplitBrowser.expandAllSubBrowsers()SplitBrowser.addSubBrowser(in String aURI, in Node aTargetSubBrowser, in Number aPosition)null.SplitBrowser.POSITION_LEFTSplitBrowser.POSITION_RIGHTSplitBrowser.POSITION_TOPSplitBrowser.POSITION_BOTTOMSplit Browser implements its feature with a special XUL element type, "subbrowser". It includes a simple toolbar and some basic features.
The description of properties and methods of the "subbrowser" element is:
subbrowser.browsersubbrowser.load(in String aURI)subbrowser.reload()subbrowser.stop()subbrowser.goBack()subbrowser.goForward()browser property.subbrowser.focusedsubbrowser.close()subbrowser.openNewTab()subbrowser.focus()subbrowser.blur()subbrowser.contentCollapsedsubbrowser.collapse()subbrowser.expand(in Boolean aForce)subbrowser.toggleCollapsed()Split Browser dispatches some custom events for its feature. If you reuse those events for your extension, like document.getElementById('appcontent').addEventListener('SubBrowserAdded', listener, false), you can collaborate this and yours.
SubBrowserAdded eventtarget (and originalTarget) is the subbrowser element ifself, which is newly created.SubBrowserRemoveRequest eventtarget (and originalTarget) is the subbrowser element should be removed.SubBrowserRemoved eventtarget (and originalTarget) is the subbrowser element which is removed.SubBrowserContentCollapsed eventtarget (and originalTarget) is subbrowser element which is collapsed.SubBrowserContentExpanded eventtarget (and originalTarget) is subbrowser element which is expanded.SubBrowserFocusMoved eventtarget (and originalTarget) is the root element of the document. this has a special property:
lastFocusednull.You can split content area by scripts in web pages, with the version 0.4.2007051501 or later.
You can split the content area by dispatching a custom event, "SubBrowserAddRequestFromContent".
// Step 1: Create new event which has detail of the command.
var newCmdEvent = document.createEvent('Events');
newCmdEvent.initEvent(
'SubBrowserAddRequest?'
+ 'uri=' + encodeURIComponent('http://piro.sakura.ne.jp/') + ';'
+ 'position=top',
true, true);
// Step 2: Create a wrapper event (XULCommandEvent) amd dispatch it.
var newEvent = document.createEvent('XULCommandEvents');
newEvent.initCommandEvent('SubBrowserAddRequestFromContent',
true, true,
window, 0, false, false, false, false,
newCmdEvent
);
document.dispatchEvent(newEvent);
To load web page into the split browser, specify URI as URI-encoded string and put it to the uri option. If no URI is specified, blank page will be loaded.
One of five values can be used in position option. Illegal values are ignored.
topbottomleftrighttab : This will open the window as a new tab anyway.The value is not case-sensitive. They are equal: top, Top, and TOP.
Then cannot be closed by window.close(). To close them, dispatch another custom event.
Firefox will open windows as split-browser if the root element of the document has an attribute _moz-split-browser-to. While the attribute is available, any new window created by window.open() from the document becomes split-browser, not tab or window.
document.documentElement
.setAttribute('_moz-split-browser-to', 'right');
var newSplitBrowser = window.open('http://www.google.co.jp/');
// This will be loaded as a new rightside pane.
document.documentElement
.removeAttribute('_moz-split-browser-to');
window.open('http://www.google.co.jp/');
// This will be loaded as a new window or tab.
The value of _moz-split-browser-to attribute is same to "position" option of custom event.
They can closed by window.close() or the custom event.
You can close the split browser by a dispatching custom event, "SubBrowserRemoveRequestFromContent".
var newEvent = document.createEvent('Events');
newEvent.initEvent('SubBrowserRemoveRequestFromContent', true, true);
document.dispatchEvent(newEvent);
It can close any split browser, opened by custom event or custom attribute.
Split-browsers can be closed by window.close() if there is only one tab. If the split browser has more tabs, it closes only one tab.
newSplitBrowser.close();
It only can close split browsers opened by custom attribute. If you want split-browsers opened by the custom event to be closed,dispatch another custom event.