setActive并不真正获得焦点,在应用程序窗口中切换时仍然保持这个“焦点”
原文在
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setactive.asp
function fnOpen(){
//Open new window.
oWin1 = window.open(”http://msdn.microsoft.com/workshop/samples/author/dhtml/refs/setactive_content.htm”,
“oWin1″,
“top=10px,left=480px,height=375px,width=200px,resizable=1″);
//Set focus back to the parent window.
this.focus();
}
function fnBottomActive(){
//Set the object with ID=btnLarger active in the other window.
window.parent.oWin1.secondButton.setActive();
}
|
|
Leave a reply