You need to use the name attribute:
window.open("https://www.youraddress.com","_self")
Edit: Url should be prepended with protocol. Without it tries to open relative url. Tested in Chrome 59, Firefox 54 and IE 11.
More Related Contents:
- Link to a file and javascript simultaneously
- Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?
- How to close current tab in a browser window?
- How to change the href attribute for a hyperlink using jQuery
- How do I create a link using javascript?
- HTML tag want to add both href and onclick working
- Why is it bad practice to use links with the javascript: “protocol”?
- How to submit a form with JavaScript by clicking a link?
- What is the difference between the different methods of putting JavaScript code in an ?
- Link inside a button not working in Firefox
- Get local href value from anchor (a) tag
- Including both href and onclick to HTML tag
- How can I disable HREF if onclick is executed?
- anchor jumping by using javascript
- how to exchange variables between two HTML pages?
- get all the href attributes of a web site [duplicate]
- Is there a way to get a element to link to a location without wrapping it in an
- How to save an image to localStorage and display it on the next page?
- How to add line breaks to an HTML textarea
- Using an HTML button to call a JavaScript function
- Why is deprecated and what is the best alternative?
- Set active tab style with AngularJS
- D3 Bar Graph example not working locally
- jQuery position DIV fixed at top on scroll
- Can I just make up attributes on my HTML tags?
- Why does querySelector only select the first element and how can I fix this?
- How can I set preview of video file, selecting from input type=’file’
- Change form action on select option
- How to insert HTML as Text
- How can I calculate the difference between two times that are in 24 hour format?