Parašė ---· 2010 Bir. 8 13:06:38
#3
Visas kodas:
<html>
<head>
<title>Testas</title>
<script>
function CheckLength()
{
var msg_area = document.getElementById("Message");
msg_area.innerHTML = "";
if (document.getElementById("info").value.leng th < 1) {
msg_area.innerHTML = "Iveskite info";
}
else document.getElementById("input").submit();
}
</script>
</head>
<body>
<form name="input" id="input" action="failas.txt" method="get">
Info:<input type="text" name="info" id="info"/>
<input type="submit" value="Submit" onClick="CheckLength()"/>
</form>
</form>
</body>
</html>
Redagavo ---· 2010 Bir. 8 13:06:33