window.open(
'https://support.wwf.org.uk/earth_hour/index.php?type=individual',
'_blank' // <- This is what makes it open in a new window.
);
Related Contents:
- How to remove the hash from window.location (URL) with JavaScript without page refresh?
- Cannot open local file – Chrome: Not allowed to load local resource
- What’s the difference between window.location and document.location in JavaScript?
- Chrome, Javascript, window.open in new tab
- JavaScript hard refresh of current page
- window.open with headers
- Why is window.showModalDialog deprecated? What to use instead?
- How to set a file name using window.open
- window.open() on a multi-monitor/dual-monitor system – where does window pop up?
- What happens to code after a javascript redirect (setting window.location.href)?
- window.opener is null after redirect
- What’s the difference between window.location and document.location?
- window.open behaviour in chrome tabs/windows
- Window.Open POST
- window.location versus just location
- Javascript Generate Array of Hours in the Day Starting with Current Hour [closed]
- Sharing changes to data between Polymer elements
- How do global variable work in javascript (callback)?
- How do you check that a number is NaN in JavaScript?
- Preventing SQL injection in Node.js
- How to get evaluated attributes inside a custom directive
- Best cross-browser method to capture CTRL+S with JQuery?
- sort Javascript array by two numeric fields
- How to access Session variables and set them in javascript?
- Is reading the `length` property of an array really that expensive an operation in JavaScript?
- Difference and intersection of two arrays containing objects
- Accessing JSON object keys having spaces [duplicate]
- How to show progress bar while loading, using ajax
- Cross-browser bookmark/add to favorites JavaScript [duplicate]
- How can I disable HREF if onclick is executed?
- How to use jQuery and jQuery plugins with PrimeFaces
- Wait for forEach with a promise inside to finish
- Javascript Set vs. Array performance
- What is the ‘global’ object in NodeJS
- What should every JavaScript programmer know? [closed]
- Print Html template in Angular 2 (ng-print in Angular 2)
- Firebase JS API auth – account-exists-with-different-credential
- How can I access the DOM elements within an iFrame
- Mail attachment wrong media type Gmail API
- extract time from datetime using javascript
- How to store a byte array in Javascript
- JavaScript Extending Class
- NSString in UIWebview
- easeljs not showing bitmap
- Typescript compiler error when importing json file
- require is not defined error with browserify
- Onresize for div elements?
- Auto-Full Screen for a Youtube embed
- Accessing elements in the shadow DOM
- Spawn and kill a process in node.js