Salve a tutti!
ho creato un pulsante che, grazie alla funzione openwindow, mi apre 5 pagine e fin qui tutto ok.
Ora volevo che dopo aver cliccato sul pulsante questo diventi non cliccabile per le successive 12 ore.
Immagino serva qualcosa lato server come php o asp...pensavo di usare una $_SESSION ma non sono molto pratico.
Questa è la pagina che ho creato:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Aggiornamento</title>
<Script language=javascript> function openwindow() {
var w = 500;
var h = 100;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("URL1","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
window.open("URL2","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
window.open("URL3","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
window.open("URL4","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
window.open("URL5","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
</script>
</head>
<body>
<FORM>
<div align="center">
<input type=button value="Aggiorna" onclick="openwindow()">
</div>
</FORM>
</body>
</html>