Solved: javascript window.location new tab

The main problem is that the new tab page in Firefox uses the same URL as the current tab, which can be confusing if you’re trying to switch to a different website.


window.open('http://www.google.com', '_blank');

This code line opens a new browser window and loads the Google homepage. The ‘_blank’ argument specifies that the new window will be opened in a new tab or window.

window.location

window.location is a global variable that returns the URL of the current document.

New tab tips

There are a few new tab tips in JavaScript that you may find useful.

One is the ability to open files in your default editor. To do this, simply type “editor” into the New tab search bar and hit enter. This will open a list of editors that you can select from.

Another is the ability to quickly search for files on your computer. To do this, type “file” into the New tab search bar and hit enter. This will open a list of files that you can select from.

Related posts:

Leave a Comment