This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

How to close a child window from a parent window using javascript

Here i will explain how to close a child window from a parent window using simple javascript.

 <meta name="Content-Script-Type" content="text/javascript">
<title>Example For Child and Parent Window Operations</title><script

language="JavaScript">function closeDep() {
//mistonline.in
//refer us for more tutorials scripts
if (main && !main.closed)
main.close()
else{

alert("I think you have not open any child windows")
}
}
</script>
<body >
<div>
<a href="http://www.mistonline.in/" onclick="main = window.open(this.href, 'win',

'height=650,width=700'); return false">Mistonline tutorial world</a></div><p><input

type="button" value="winclose"

onClick="closeDep();">
Simple correct.Please give some feedback.
VN:F [1.5.7_846]
Rating: 10.0/10 (1 vote cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Removing Nodes using javascript
  2. Adding and removing child nodes using javascript and DOM
  3. Javascript Popup Chromeless Window
  4. Javascript popup window
  5. Add to favorites or bookmarking using javascript in firefox and internet explore [IE]
  6. Close Event In Javascript Using OnUnload()
  7. Close Event In Javascript For Firefox, IE and Chrome

3 Comments

  1. Anirban says:

    Excellent, Superb

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  2. john says:

    Interesting post :)Bookmarked it!

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  3. john says:

    Love your blog I’m going to subscribe

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)

Leave a Reply

Comments (required)

Spam Protected