window.open(
'https://support.wwf.org.uk/earth_hour/index.php?type=individual',
'_blank' // <- This is what makes it open in a new window.
);
More Related Contents:
- Why is set.timeout not working in this php while loop?
- How to remove the hash from window.location (URL) with JavaScript without page refresh?
- What’s the difference between window.location and document.location in JavaScript?
- Cannot open local file – Chrome: Not allowed to load local resource
- 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?
- window.open() on a multi-monitor/dual-monitor system – where does window pop up?
- How to set a file name using window.open
- window.opener is null after redirect
- What happens to code after a javascript redirect (setting window.location.href)?
- What’s the difference between window.location and document.location in JavaScript?
- Window.Open POST
- What’s the difference between window.location and document.location?
- Difference between window.location.assign() and window.location.replace()
- How to get the references of all already opened child windows
- window.open behaviour in chrome tabs/windows
- window.location versus just location
- Javascript,calling child window function from opener doesn’t work
- window.location.href doesn’t redirect
- Is there a way to have an onload callback after changing window.location.href?
- window.open returns null and fails in inline script but works from console
- Javascript “window.open” code won’t work in Internet Explorer 7 or 8
- Syntax for an async arrow function
- Sorting options elements alphabetically using jQuery
- Slow down scroll to top event by jQuery animate
- How to restrict access to routes in react-router?
- Advantages of setting the “constructor” Property in the “prototype”
- Why is it necessary to use bind when working with ES6 and ReactJS?