PC Review


Reply
Thread Tools Rate Thread

How to close a window using Java script??

 
 
sivarman dasd
Guest
Posts: n/a
 
      24th Feb 2004
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?c3VtYXRoaQ==?=
Guest
Posts: n/a
 
      24th Feb 2004
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"
}
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form/window Close - Java Script in 2005/2008 Ryan Microsoft ASP .NET 2 7th Apr 2010 09:40 AM
close webform java script Paul Microsoft ASP .NET 4 8th Oct 2008 05:20 AM
java script secondary window will open the immediately close by it =?Utf-8?B?SkpC?= Windows XP Internet Explorer 1 27th Apr 2006 03:02 PM
window properties from java script.... Brown Smith Microsoft ASP .NET 2 18th Jun 2005 08:30 PM
open / close new window (no java) nicholas Microsoft ASP .NET 2 4th Mar 2005 07:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 PM.