0% found this document useful (0 votes)
61 views2 pages

Internal Javascript: Internaljavascript - HTML

This HTML document contains JavaScript code to display alerts when a button is clicked and when the page loads. The button has an "onclick" attribute that triggers an alert pop-up with the text "Hi" when clicked. There is also JavaScript code within a <script> tag that triggers an alert with the text "Page loaded!" when the page finishes loading.

Uploaded by

Ania Neal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Internal Javascript: Internaljavascript - HTML

This HTML document contains JavaScript code to display alerts when a button is clicked and when the page loads. The button has an "onclick" attribute that triggers an alert pop-up with the text "Hi" when clicked. There is also JavaScript code within a <script> tag that triggers an alert with the text "Page loaded!" when the page finishes loading.

Uploaded by

Ania Neal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Internal Javascript: internaljavascript.

html
!
!

<!doctype html>
<html>
<head>
<title>Learning Javascript</title>

<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />



</head>

<body>

<button onclick="alert('Hi')">Click Me!</button>

<script type="text/javascript">

alert("Page loaded!");

</script>

</body>
</html>

You might also like