Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


problem with window.close()

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1204
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> problem with window.close()
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 problem with window.close() - 8/2/2004 4:53:02 PM   
  gmadankumar

 

Posts: 1
Score: 0
Joined: 8/2/2004
From: India
Status: offline
Iam using vbscript sub function to close a window, its working fine in IE but the window is not closing in MAC safari 1.2. can any one test and tell me whats the problem/solution.
the code is:

Sub ShowConfirmation()
Response.Write "<HTML><Script Language=""JavaScript"">"
Response.Write "function refreshParent()"
Response.Write "{window.close();"
Response.Write "return true; }</script></HEAD><BODY onload=""return refreshParent()""></Body></HTML>"
End Sub

If Request.QueryString("act") = "Cancel" Then
ShowConfirmation
end if

thanks in advance

_____________________________

Madan
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> problem with window.close() Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts