root/lang/javascript/userchrome/LocationbarNewTab.uc.js
| Revision 13472, 404 bytes (checked in by snj14, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | // open in New Tab from location bar |
| 2 | BrowserLoadURL = function(event,post){ |
| 3 | gBrowser.userTypedValue = content.window.document.URL; |
| 4 | if((event && event.altKey) || |
| 5 | gURLBar.value.match(/^javascript:/) || |
| 6 | gBrowser.userTypedValue == 'about:blank'){ |
| 7 | loadURI(gURLBar.value,null,post,true); |
| 8 | }else{ |
| 9 | _content.focus(); |
| 10 | gBrowser.loadOneTab(gURLBar.value,null,null,post,false,true); |
| 11 | } |
| 12 | } |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)