as3 use js call parent focus

2012年3月26日 星期一 by Hu, Ching-Hsiang

xxx.com
Loading
var js:URLRequest=new URLRequest(); //js.url="javascript:window.opener.focus()"; js.url="javascript:if(window.opener){window.opener.focus();}else{window.open('http://yoururl.com','name');newWindow.focus(); void(0);}"; navigateToURL(js,'_self');

Filed under having  

0 意見: