Fejl på en event
<script>var current2
function check2()
{
current2 = document.getElementById("txt").value;
alert(current2);
}
function check()
{
var current = document.getElementById("txt").value;
If (current2 != current)
{
alert(current);
}
}
</script>
Hvorfor få jeg en fejl her
<body onunload="check()" onload="check2()">
<p>Link 1 </p>
<p><textarea rows="11" name="txt" cols="32">Onload side 1</textarea></p>
</body>
</html>