Thursday, March 3, 2011

Y10 Module - HTML / JAVASCRIPT INTRO

Here's the code to type into Notepad or Textedit (remember to set Textedit to Plain Text)
LESSON 1
<html>
<head>
<title>This is the Title</title>
</head>
<body>
<center><b>Hello My name is Mr Wells</b></center>
<script>
var WhatTheyHaveTyped = prompt("Please add a new Title: ");
document.title = WhatTheyHaveTyped;
</script>
</body>
</html>

No comments:

Post a Comment