user19140477031
user19140477031

Reputation: 363

How can I self close the browser in javascript

I want to make a simple html page with javascript which auto-closes itself after opening.

My main aim is that I want to redirect the user to this page after some data update in the popup window so that windows gets closed after the data is updated.

I am not able to figure it out.

Upvotes: 0

Views: 960

Answers (1)

sv_in
sv_in

Reputation: 14049

JSFiddle code: http://jsfiddle.net/XaSKY/ to see in action.

You can use window.close() function

Upvotes: 7

Related Questions