Ciao.
Ho questo (misero ahimè
) codice js :
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Show Div</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#hiden {
width:200px;
height:200px;
background-color:#CC99FF;
display:none;
}
</style>
<script language="JavaScript" type="text/JavaScript">
function showDiv()
{
document.getElementById("hiden").style.display = "block";
}
window.onload = function()
{
document.getElementById("frm").onsubmit = showDiv;
}
</script>
</head>
<body>
<div id="hiden"><span id="isc">X</span></div>
<form onSubmit="" id="frm" action="index.htm" method="get" name="frm">
<input name="sub" type="submit" value="submit">
</form>
</body>
</html>
Che dovrebbe servire per mostrare un div al submit
della form con dentro uno span per chiudere lo stesso
il problema come potete immaginare dal codice
fa vedere il div dopo il submit ma come logico
lo nasconde subito dopo.
Come posso fare per farlo restare ............