create excercise for javascript
This commit is contained in:
parent
9c260d8f3d
commit
1d40b7f485
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<head>
|
||||
<script type="text/javascript" src="helloworld.js"></script>
|
||||
<title>JavaScript</title>
|
||||
</head>
|
||||
<body onload="showHelloWorld();">
|
||||
<h1>JavaScript</h1>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
function showHelloWorld() {
|
||||
alert('Hello World.');
|
||||
}
|
Reference in New Issue