Javascript Close Window Alert Message

Javascript Close Window Alert Message

How to close the current window in Browser after in the alert message From Using Javascript?
Based on some action in a page. i want to give an alert message to the user Want to do this using alert method only instead of confirm method in javascript.
Okhy Now Just Copy And Past From Script.

Just Put The Statement One after Each Others.

alert("ok");
window.close();

Another implemention is the following you can find in this pages

window.onbeforeunload = function() {
       return "Hello How Are You"
}

Now Use For Script Follow Me

<html>
<head>
<title></title>
<script type="text/javascript">
window.onbeforeunload = function() {
       return "Hello How Are You"
}
</script>
</head>
<body>
</body>
</html>

Save Your File From HTML Extension Now See The Preview You Browser. You are Like The Script So Comment Box Comment And Share  

Related Post

Next
Previous
Click here for Comments

0 comments:

Thnak You For Comment And For Your Question, Answer Very Soon.