Challenge One Walkthrough
Summary Open dreamweaver Open index Add and Add form Open controller.js add function Link controller to index
Open DreamWeaver Click Start (bottom left of the screen) Type Dream Click DreamWeaver to open
Open index Click start again Click on your name – find where you saved the challenge one site! Drag the index.html page onto any dark grey area in DreamWeaver!
Add Under Write Challenge One Save site Run site – what happens?
Add Under the add Type your name below Save site Run site
Add Under the tag Add and Inside the form tags – – Say Hello Save Run – what happens?
Add extra things to form Inside the tag add id=“txtName” Inside the add –onclick=“javascript:sayHello();”
Open up controller.js Go back to your challenge one folder Open the js folder Drag the controller.js onto the top grey bar of DreamWeaver
Create a function Write Function sayHello() { var name = document.getElementById('txtName').value; alert (“hello “ + name); }
Link controller to index Below your