Ho provato a leggere sia il link che mi hai girato,
mi sono documentato,
ma avrei bisogno del codice ....
Quello che voglio fare e', quando uno schiaccia il pulsante Nascondi:
- RENDERE INVISIBILE IL CAMPO "t1"
- IN MODO DA DARE IN PASTO ALLA PAGINA "page.asp" LA PAGINA test.htm
CON IL CAMPO TESTO "t1" GIA' INVISIBILE
- ESEGUIRE LE ISTRUZIONI DELLA PAGINA "page.asp"
CHE ALLA FINE CONTIENE UN response.redirect ALLA PAGINA "test.htm"
CHE PERO' DEVE AVERE ORA IL CAMPO "t1" VISIBILE !!!
Ho provato a usare body onload che richiama la funzione nascondi() ma non riesco ...
![]()
<html>
<head>
<script type="text/javascript">
function nascondi() {
document.getElementById('t1 ').style.display = 'none';
document.myform.action = "page.asp"
document.myform.submit();
}
</script>
</head>
<body>
<form name="myform" method="post">
Nome <input type="text" name="t1 " id="t1" value="scrivi nome" size="41" /></p>
Cognome <input type="text" name="t2" id="t2" value="scrivi cognome" size="41" />
<button onClick="nascondi()" style="width:80px;"> Nascondi</button></p>
</form>
</body></html>