nguyenanhtuanhvan Posted March 14, 2013 Share Posted March 14, 2013 Can some one give me a simple example web source code have a java script code make it auto close after 5 second? Link to comment Share on other sites More sharing options...
jeffman Posted March 14, 2013 Share Posted March 14, 2013 Read about setTimeout and window.close NOTE that you can only close a window if you open it yourself. If the user opened the window, your script is not authorized to close the window. This is basic security. Link to comment Share on other sites More sharing options...
nguyenanhtuanhvan Posted March 15, 2013 Author Share Posted March 15, 2013 Thanks men. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now