Sunday, January 13, 2019

Internal Javascripts

Internal Javascripts :   
The script code can be written directly into the HTML document. script code is placed in header of the document using script tag .

EXAMPLE: 

<html>

<head>

<title>Internal Script</title>

<script type="text/javascript">
function internal(){
alert("Internal Script");
}
</script>

</head>

<body>

<h2>Example for Internal script</h2>

<input type="button" 
onclick="internal();
"value="Click here" />

</body>

</html>

OUTPUT:-
sk.1

sk.2

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...