Search Results

Handling forms in Javascript

This lesson will give an idea how to start using javascripts in forms
<HTML>
<BODY>
<SCRIPT LANGUAGE=javascript>
<!–
     function f1(){
     document.write(MyForm.name,”<Br>”,MyForm.textname.value,”<Br>”,MyForm.length)
     }
//–>
</SCRIPT>
</BODY>
<FORM action=”” method=POST name=MyForm onclick=”f1()”>
<INPUT type=”text” name=textname value=”Broken Arrow”>
</FORM>
</HTML>

Alert in Javascript

This lesson will help the beginners to handle alerts in JavaScripts
<html>
<head>
<script language=”javascript”>
<!–
function f1()
 {
 alert(“Skill Hut”); // Message ‘Skill Hut’ will be displayed
 }
–>
</SCRIPT>
</head>
<body color=white>
Move your mouse over <a href=”” onMouseover=”f1()”>here</a>
</body>
</html>