How to close a window using Java script??

  • Thread starter Thread starter sivarman dasd
  • Start date Start date
S

sivarman dasd

Hi,
I have used Javascript to a page, and i have opened another child form.
Now i need to close the child page from the parent page. how do i do
it??
Help me...!!
Thanks
 
When opening the window, do it like this

Code
mywin = window.open(...)
then, to close and re-direct, run this function

Code
function closewin()
mywin.close()
top.location.href = "http://www.microsoft.com"
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top