I know this is an old post, with a lot of changes since 2017, but I have found that I can close my current tab/window with the following now in 2019:
onClick="javascript:window.close('','_parent','');"
More Related Contents:
- How to Protect website code PHP / JS? [closed]
- How to create blog posts with HTML and CSS? [closed]
- How to decode HTML entities using jQuery?
- Can I escape HTML special chars in JavaScript?
- Stop setInterval
- Simulation background-size: cover in canvas
- How can I simulate a click to an anchor tag?
- How to Increase browser zoom level on page load?
- Intercept a form submit in JavaScript and prevent normal submission
- Will HTML5 allow web apps to make peer-to-peer HTTP connections?
- Uploading ‘canvas’ image data to the server
- How to select nth line of text (CSS/JS)
- Creating a jQuery object from a big HTML-string
- How to format/tidy/beautify in JavaScript
- Javascript variables in HTML attributes
- What is the purpose of the HTML “no-js” class?
- What is the current state of the art in HTML canvas JavaScript libraries and frameworks? [closed]
- Webpack file-loader outputs [object Module]
- Javascript function to Rotate a base 64 image by X degrees and return new base64
- Why does Firefox react differently from Webkit and IE to “click” event on “select” tag?
- How to handle in textarea?
- Best way to store JSON in an HTML attribute?
- Retain scrollbar position even after reloading using javascript
- Count Words and Characters [closed]
- HTML5 Canvas translate(0.5,0.5) not fixing line blurryness
- Show/hide image with JavaScript
- Test if an element can contain text
- Using base64-encoded images with HtmlService in Apps Script
- Changing data content on an Object Tag in HTML
- Communicate between two pages / tabs