CSS Pract-9
CSS Pract-9
<html>
<head>
</head>
<body>
<P>
<img src="submit.jpg"
onclick="javascript:document.forms.contact.submit()"/>
<img src="reset.jpg"
onclick="javascript:document.forms.contact.reset()"/>
</P>
</FORM>
</body>
</html>
Output:
Code-2:
<html>
<head>
</head>
<body>
<script>
if(typeof(pos) == "undefined") {
pos = 0;
if(typeof(ins_string) == "undefined") {
ins_string = '';
main_string.slice(pos);
}
var main_string = "Welcome to JavaScript";
</script>
</body>
</html>
Output: