PDA

View Full Version : Window close problem



bruce
Mar 07, 2009, 2:24 AM
hi ,guys!
this is my question about window close:

now there are 2 page :PageA & PageB
PageA has a window "winCommon" and button "btnLoad". when press "btnLoad", winCommon will load PageB and show.

PageB has a button "btnExit", when press "btnExit", how can it close the winCommon?

i try like this:



var scriptManager = Coolite.Ext.Web.ScriptManager.GetCurrent(Page);

//scriptManager.AddScript( "window.close(); ");

scriptManager.AddScript("#{winCommon}.close(); ");



both failed.

please help. Thank you!