1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/tests/examples/wi-auth/www/wifi-aaa.comune.fi.it/js/logout_popup.js
stefanocasazza 31947fe690 sync
2016-12-05 14:36:57 +01:00

15 lines
385 B
JavaScript

function CloseItOnClick() { window.close(); }
function CloseItAfterSomeTime() { setTimeout("window.close();", 5 * 1000); }
function doOnLoad(URL, redirurl) {
if (redirurl == 'IPHONE') window.close();
else
{
popup = window.open(URL, 'logout_popup', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600');
self.location = redirurl;
}
}