<html>
<head>
<script type="text/javascript">
function login()
{
alert("Hello World!")
}
</script>
</head>
<body>
<form action="#" method="post" />
Login:<input type="text" name="name" id="login" />
<button type="button" value="Click me!" onclick="login()" />
</form>
</body>
</html>
why the line
Login:<input type="text" name="name" id="login" />
makes "object doesn't support this property or method" error, when i click button? how can i solve this problem?
<head>
<script type="text/javascript">
function login()
{
alert("Hello World!")
}
</script>
</head>
<body>
<form action="#" method="post" />
Login:<input type="text" name="name" id="login" />
<button type="button" value="Click me!" onclick="login()" />
</form>
</body>
</html>
why the line
Login:<input type="text" name="name" id="login" />
makes "object doesn't support this property or method" error, when i click button? how can i solve this problem?