Use a setTimeout, for example:
var win = window.open("http://www.google.com", '1366002941508','width=500,height=200,left=375,top=330');
setTimeout(function () { win.close();}, 3000);
Sample fiddle: http://jsfiddle.net/N5rve/
More Related Contents:
- Hover over image to get a box with multiple links in html/JavaScript
- Reloading a single div in an html page [closed]
- Auto Uploading file
- How do you inject this code into HTML using Javascript?
- Can I escape HTML special chars in JavaScript?
- How To Save Canvas As An Image With canvas.toDataURL()?
- Simulation background-size: cover in canvas
- How can I simulate a click to an anchor tag?
- HTML5 Canvas to PNG File
- Restricting input to textbox: allowing only numbers and decimal point
- How to select nth line of text (CSS/JS)
- How to format/tidy/beautify in JavaScript
- What is the current state of the art in HTML canvas JavaScript libraries and frameworks? [closed]
- Creating a select box with a search option
- How to handle in textarea?
- Making a Chrome Extension download a file
- Prevent browser from loading a drag-and-dropped file
- render html in state string [duplicate]
- How do you click on an element with text in Puppeteer?
- Testing for multiple screens with javascript
- Best way to store JSON in an HTML attribute?
- Count Words and Characters [closed]
- Not allowed to load local resource: file
- Change form action on select option
- How to insert HTML as Text
- How do I dynamically adjust css stylesheet based on browser width?
- Display Spreadsheet Data to HTML Table
- How to get and set the current web page scroll position?
- How do I put a clear button inside my HTML text input box like the iPhone does?
- How can I calculate the difference between two times that are in 24 hour format?