Full width home advertisement

How To

Science

Post Page Advertisement [Top]


The HTML <script> tag is used to add either external script file or to sets internal script for the HTML document. 

Example:

<!DOCTYPE html>

<html>

<head>

<title>HTML script Tag Example</title>

<base href="http://www.scholarsglobe.com/" />

<script type="text/JavaScript">

function Hello(){

alert("Hello, World");

}

</script>


</head>

<body>

<input type="button" onclick="Hello();" name="ok" value="OK" />

</body>

</html>

For Beginner: Copy and Paste code in Notepad, Save as index.html or test.html and open/preview in any web browser.

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib