Genie: Abfrage einer Eigenschaft

Beitrag lesen

Hi

Rück mal Quellcode raus

  
<html>  
<head>  
<style type="text/css">  
[code lang=css]input{display:block;}

</style>
<script type="text/javascript">

function test()  
{if (document.formular.textfeld.style.display == "block")  
document.formular.textfeld.style.display = "none";  
else  
document.formular.textfeld.style.display = "block";}

</script>
</head>
<body>
<form name="formular">
<input type="button" onclick="test()" value="test">
<input name="textfeld" value="test">
</form>
</body>
</html>
[/code]
funzt bei mir. (Ich weiß, dass da ein paar Fehler sind, doctype, <title> etc.)

mfg
Genie