I don’t think there’s a way to do this, unless you’re writing a browser extension. You could try using window.open
and hoping that the user has their browser set to open new windows in new tabs.
Related Posts:
- Redirect from an HTML page
- Redirect from an HTML page
- Edit webpage with javascript trick – how to “unedit”?
- Automatically pausing html5 video as the ‘next’ button is pressed (javascript/ jquery)
- Is it possible to write data to file using only JavaScript?
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- Is it possible to write data to file using only JavaScript?
- How to make JavaScript execute after page load?
- Set cookie and get cookie with JavaScript
- Which is better: or
- Onclick javascript to make browser go back to previous page?
- How to make JavaScript execute after page load?
- Why is my Javascript not working?
- How can I get the values of data attributes in JavaScript code?
- Javascript: getElementById vs getElementsById (both works on different pages)
- mailto using javascript
- mailto using javascript
- Mailto using Javascript?
- How to change css property using javascript
- javascript close current window
- I am trying to make a simple toggle button in javascript
- How to call a JavaScript function within an HTML body
- How to save user input into a variable in HTML and JavaScript
- Hiding a button in Javascript
- Show/hide ‘div’ using JavaScript
- How to make JavaScript execute after page load?
- Get HTML code using JavaScript with a URL
- Calculate percentage Javascript
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- JavaScript function onhover in
- Check if an element contains a class in JavaScript?
- Hide element by class in pure Javascript
- How to play a mp3 using Javascript? [duplicate]
- mailto using javascript
- Function not defined javascript
- How to submit a form with JavaScript by clicking a link?
- How to call a REST web service API from JavaScript?
- Check a radio button with javascript
- AppendChild() is not a function javascript
- How can I change an element’s class with JavaScript?
- JavaScript: Get image dimensions
- Why write script type=”text/javascript” when the mime type is set by the server?
- Redirect website after specified amount of time
- How to select an input element by value using javascript?
- How to create a hidden in JavaScript?
- How do I programmatically set the value of a select box element using JavaScript?
- How can I capture the right-click event in JavaScript?
- How do I clear the content of a div using JavaScript?
- How to make a monopoly board using css grid?
- How to horizontally center an element
- How to play audio?
- Why does z-index not work?
- Image is not showing in browser?
- Adding attribute in jQuery
- Is element block level or inline level?
- XPath //div[contains(text(), ‘string’)] fails to select divs containing ‘string’
- CSS height 100% percent not working
- Can I set subject/content of email using mailto:?
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- Why is there an unexplainable gap between these inline-block div elements?
- How to draw a dotted line with css?
- Navigate to an anchor on another page
- What is gZip compression?
- How to stick text to the bottom of the page?
- How to make blinking/flashing text with CSS 3
- What does ngf-select do and why is it needed for form validation?
- Input Type URL – Says “Please enter a URL” if HTTP is not included
- HTML table needs spacing between columns, not rows
- Is it possible to put CSS @media rules inline?
- Make padding responsive
- Why is jquery show() not working in example
- Vertically align text next to an image?
- How can I use jQuery to run MySQL queries?
- When is a CDATA section necessary within a script tag?
- How to create checkbox inside dropdown?
- Get entire page content (generated HTML in browser)
- jQuery UI Datepicker not working
- Can I force WordPress to use instead of ?
- How to wrap the content of the main tinyMCE editor with extra tags
- How do developers add “Smooth Transitions” to their sites?
- how add custom tag/tool in classic editor?
- Adding HTML to posts with certain tags?
- Adding to the WYSIWYG
- How to remove auto generated markup? [closed]
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- Is there a common structure for a wordpress formular?
- Is it possible to isolate and use WordPress functions outside of wordpress
- a generated wordpress page from a form that is inputted by user [closed]
- Search bar for wp menu
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- Executing php on button press
- Web cover page open when button clicked
- creates an unnecessary space in content?
- sessionStorage saves input value in browser but it is not loaded in the form field
- Echo outside HTML
- Add html plugin into wordpress
- WordPress HTML editor panel is not showing HTML elements
- WordPress adds ‘noindex’ tag to search results. Anything I can do about it?
- How can we get Buddypress to interpret HTML entities correctly?