How do I get Firefox's home page to open a new tab when searching?

I'm slightly modifying Firefox's about:home page, and I'm trying to get the home page to effectively be its own app tab. In order to do that, I need to make it so that when I search with it, it opens a new tab to view my search results.
I've tried two things so far; I've tried adding the attribute '''target="_blank"''' to the '''<form>''' tag, and I've tried adding the attribute '''onclick="this.form.target='_blank';return true;"''' to the '''<input>''' tag nested inside of the '''<form>''' tag (I'm guessing the latter is JavaScript lol). I also tried an extension "TabSubmit" which didn't work here.
I know how to edit the right page (I'm changing the contents of aboutHome.xhtml in omni.ja), and have already edited the stylesheet slightly (to underline links when hovering over them and adjusting the fading of Mozilla's logo when hovering over it). This is the next change I wanted to make.
Any suggestions? Thanks!

The about:home uses window.location.href = url; to change the location of the current tab.
Changing this to window.open(url); and adding a line at the end of the aboutHome.js file to initialize localStorage works for me with a locally saved about:home page.
<pre><nowiki>function onSearchSubmit(aEvent)
let searchTerms = document.getElementById("searchText").value;
if (gSearchEngine && searchTerms.length > 0) {
const SEARCH_TOKENS = {
"_searchTerms_": encodeURIComponent(searchTerms)
let url = gSearchEngine.searchUrl;
for (let key in SEARCH_TOKENS) {
url = url.replace(key, SEARCH_TOKENS[key]);
window.open(url);
aEvent.preventDefault();
localStorage["search-engine"]="{\"name\":\"Google\",\"searchUrl\":\"http://www.google.com/search?q=_searchTerms_&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a\"}";</nowiki></pre>

Similar Messages

  • How do I get rid of the "You've opened a new tab" message every time I open a new tab? It's annoying.

    Every time I open a new tab, I get the message "You've opened a new tab" How do I stop this from happening?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I can not get firefox as home page/say open browser save file dont work

    lost Firefox as home page

    If a website uses BGSOUND then it will only work in IE.
    BGSOUND is not compatible with other browsers like Firefox.
    * http://kb.mozillazine.org/Background_music_does_not_play

  • How do I get rid of the "you've opened a new tab" page that opens when I open a new tab?

    There is also a search function that leads me to yahoo search. No good.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How do I get to the home page of itunes for IPAD to see my account and my apps?

    How do I get to the home page of itunes to see my account and the apps installed onmy Ipad or Ipod?

    Recovery Mode Step by Step
    1. Hold Sleep/Wake button down and slide to turn off iPad
    2. Turn on computer and launch iTune (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port. Do not release button until you see picture of iTune and plug.
    5. Release Home button.
    On Computer
    6. iTune has detected iPad in recovery mode. You must restore this iPad before it can be used with iTune.
    7. iPad Recovery Mode on computer screen
    8. Select "Restore iPad"...
    9. Select "Restore and Update"
    10. Extracting Software.
    11. Preparing iPad for restore.
    12. Waiting for iPad.
    13. Verifying iPad restore...
    14.Restoring iPad software.
    15. Verifying iPad software.
    16. Verifying iPad Restore...
    17. Restoring iPad firmware...
    18. Your iPad is restored to factory settings; keep iPad connected to computer
    19. Activate iPad
    20. Enter Apple ID and Password
    21. Continue
    22. Welcome to Your New iPad
    (a) Set up as new iPad   (b) Restore from this backup (select from list of backups)
    23. Restore from this backup
    24. Continue
    25. Restoring iPad from backup
    26. The settings of your iPad have been restore; keep iPad connected to computer
    27. Syncing iPad (Step 1 to 5)
    28. Preparing apps to sync
    29. Copying 1 of 9
    30. Sync apps, movies and music to iPad
    31. Finishing syncing
    32. Eject iPad

  • I have Google as my default home page in Firefox and the Google proser opens when I start Firefox, but every time I open a new tab it opens the Yahoo browser.

    I have Google as my default home page in Firefox and the Google browser opens when I start Firefox, but every time I open a new tab it opens the Yahoo browser.

    Do you have the FastStart extension?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I have Google as my default home page in Firefox and the Google browser opens when I start Firefox, but every time I open a new tab it opens the Yahoo browser.

    I have Google as my default home page in Firefox and the Google browser opens when I start Firefox, but every time I open a new tab it opens the Yahoo browser.

    Do you have the FastStart extension?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    How do I get firefox 4.0.1 to open in separate windows instead of tabbed browsing? Thanks!

    (If you have the orange Firefox button, tap the Alt key or press F10 to display the classic menu bar.)
    Tools > Options > Tabs
    Uncheck the first checkbox.
    Hopefully that's all you need, but if it doesn't work, let us know.

  • New Firefox 32 will not allow update to my plugins ,page keeps opening in new tab going round in circlesrenewing

    new Firefox 32 will not allow update to my plugins ,page keeps opening in new tab going round in circlesrenewing

    try to update manually or disable unnecessary plugins or upload screenshot images

  • How do I stop Firefox from opening a new tab when I click a link or navigation button (such as "home") instead of redirecting using the currently open tab?

    Any time I click on a link within a page, such as the "home" link in Facebook, or the various links on the Mozilla page that I needed to follow to get to this screen, Firefox opens a new tab instead of redirecting using the tab I'm on. Also, Firefox doesn't go to the new tab, it just opens it. So if I want to actually go to the page I've just clicked on, I have to then also find and click on the new tab that just opened.

    Hello,
    In safe mode link still open in new tabs?
    *[http://mzl.la/MwuO4X Firefox in safe mode]
    Go to '''about:config''' and search for:
    *'''browser.tabs.loadInBackground''' change its value to '''false'''.
    If in safe mode the links still open in new tabs try go to '''about:config''' and search for:
    *'''browser.link.open_newwindow''' change its value to '''3'''.
    *[http://kb.mozillazine.org/About:config about:config]

  • How do I set up my Home Page to open when I open a new tab?

    I want my home page to appear when I open a new tab but I only get a blank screen... is there anyway to fix this?

    You can look at one of these extensions:
    * NewTabURL : https://addons.mozilla.org/firefox/addon/2221
    * New Tab Homepage : https://addons.mozilla.org/firefox/addon/777
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.1 r53
    * Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Home page to show in new tab...

    When I click on a new tab it is labeled untitled. How do I get my home page automatically come up when I open a new tab. In the option field under tools, I have the setting set to open my home page when I open firefox, but i doesn't work when opening tabs. When I open a new tab I then I have to click on my homepage Icon to get home page to do a new ssearch.

    ''How do I get my home page automatically come up when I open a new tab. :''
    You can modify Firefox with and extension, I personally would not want that at all, before dismissing a tab I make sure there is nothing in the tab in a backward direction, and would consider looking a anything but a blank page for a new tab as a distracting encumbrance but you can do what you ask for. See the following:
    *NewTabURL :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/newtaburl/
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>
    I have three pages of my own on tabs
    * Tabbed Browsing in Firefox<br>http://dmcritchie.mvps.org/firefox/tabs.htm
    * Tabs configuration, extracted from About:config entries - MozillaZine Knowledge Base<br>http://dmcritchie.mvps.org/firefox/tabs_config.htm
    * 001 Tab Capacity and other Tests<br>http://dmcritchie.mvps.org/firefox/tab_capacity/001_with_underscore.htm
    The built-in Firefox search bar works just as a well as the search in the default home page.

  • When using firefox and each time I open a new tab I end up with a split screen and it is annoying. How so I fix it.

    I open firefox. Go to website then where there is a + sign I open a new tab. A new tab comes up but then splits the screen into two with a new tab in the middle and I end up with 3 small split screens in the one instead of 3 separate tabs.because it is doing that i cannot then get a full screen and go about my usual business. Lately there seems to be numerous problems with fire fox loading also. it continues to come up with page not found and try again. I hit try again and then it may find the page. these are on sites that I access daily and have done so for several years now. Never before have I had so much trouble with fire fox. Not only I but we have four computers accessing the internet ...have done for some time and never had this problem but everyone is suddenly experiencing the same problem. The only thing new that has been put on the main computer is a K9 protection thing recently and I am wondering could that have anything to do with these issues and if not is fire fox having tech issues . How can these problems??

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • After opening a new tab, when I click on my home page (the house icon), it duplicates and opens a second window...it's never done this before?

    I just installed Firefox on a new laptop. Google is my home page. My opening tab is always Google. But, when I open a New Tab, it doesn't open in Google. So, I've always clicked on the house icon to take me straight to Google. Now when I do, TWO tabs open in Google. (it duplicates)

    I tried all of the above, I've reinstalled Firefox and I've checked if value set to 3 in browser.link.open_newwindow which it is, but the problem still happens.
    Regarding what you say re what is written in the article Tab preferences and settings, I understand what this means. However I am using FireFox in my work. I have a CRM where I constantly click on a button that automatically opens my order system on a new tab, or email templates in a new tab etc. The tab opens next to the tab I am currently on. However ever since I was prompted to Refresh Firefox earlier, it now opens these in a new window. Therefore the size of these pages has nothing to do with it, as this was not a problem before.
    This is irritating, as no I have to go from one window to another, and where I have multiple tabs open it is making my life difficult.
    Not happy!

  • How do I change firefox to open a new window when I start it several times instead of opening a new tab when I want to go to a different location?

    I want to go to several different websites at the same time. I want to compare the information on each site. I do not want to open a tab, I want a whole new window. How do I change firefox so it will open a new window instead of opening a new tab and then requesting the site I want to go to?

    In Windows XP I am able to right click a link and get an option to open it as a new Firefox window
    *'''tear off tabs'''
    You will probably note tabs can be dragged along the tab toolbar, they also tear off. You can click a tab and drag it off the browser onto the Windows Desktop where it will open as a new window, or drag it on to another open browser window.
    An alternative is to click the tab and drag it down, again it will then open in a new Window.

Maybe you are looking for