Mon calque disparait à chq fois!!!
Posté : 04 mars 2005, 22:31
bonjour,
g créé un formulaire. qd je valide un calque s'affiche. Le pb c'est qu'il s'affiche bien com il faut ms disparait tt de suite apres. Je ne vois vraiment pas pourquoi... Si qqu'un pouvait m'aider...
Merci bcp
un petit bout de mon code :
<html>
<head>
function test()
{ if(document.getElementById)
{document.getElementById("calque").style.visibility="visible";
....
}
</head>
<body>
<form onSubmit="test()">
<input name ="nom" type="text">
<input name="submit" type="submit" value="valider">
</form>
<div id="calque" style="visibility :hidden;top :420px;position :absolute">
<form>
<input name="prenom" type="text">
</form>
</div>
</body>
</html>
g créé un formulaire. qd je valide un calque s'affiche. Le pb c'est qu'il s'affiche bien com il faut ms disparait tt de suite apres. Je ne vois vraiment pas pourquoi... Si qqu'un pouvait m'aider...
Merci bcp
un petit bout de mon code :
<html>
<head>
function test()
{ if(document.getElementById)
{document.getElementById("calque").style.visibility="visible";
....
}
</head>
<body>
<form onSubmit="test()">
<input name ="nom" type="text">
<input name="submit" type="submit" value="valider">
</form>
<div id="calque" style="visibility :hidden;top :420px;position :absolute">
<form>
<input name="prenom" type="text">
</form>
</div>
</body>
</html>