/*
* Storing this varible on the navigator object makes it truely global on NN4,
* but is no help on NN3, so we need the page global variable in NN3 which is
* the best we can do.
*/
var search_win = navigator._searchWin;
function loadApplet() {
if(navigator.appName == "Netscape") {
if(search_win == null || search_win.closed) {
search_win = window.open("appletn.htm", "_appletWindow", "width=390,height=300,resizable=0,status=0,menubar=0,scrollbar=0");
navigator._searchWin = search_win;
}
search_win.opener = top;
search_win.focus();
} else if(top.loadApplet != null) {
top.loadApplet();
}
}
Wyszukiwarka