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 |
No comments:
Post a Comment