However, if iframe [name] is used, it will involve the onload issue... so it will be a lot of trouble ....
The following only adds a delay... there is no "real" issue of onload processing .... in fact, we can loop through windows. open to solve the problem, but it's just a bit lazy... ^
<A href = "javascript: void (0);" onclick = "openC ('HTTP: // www.jb51.net/', 'cs', this)"> jb51.net </a>
<Script type = "text/javascript">
Window. openC = function (href, target, e ){
Try {
Window. open ('javascript: if (! Document. body) {opener. openC. isNull = true; opener. open ("c. asp"); close () ;}', target | '');
Window. setTimeout (function (){
If (window. openC. isNull ){
Delete window. openC. isNull;
Window. setTimeout (function (){
E. fireEvent ('onclick ');
},500 );
} Else {
Window. open (href, target );
}
},100 );
} Catch (exp ){
Alert (exp. message );
}
};
</Script>