In the first lab for this year we had to incorporate JavaScript into our html document. We had to make a button that said "click me" and when the viewer would click this button the text underneath would change to "This is my first JavaScript." We also had to have three paragraphs in the html file that answered two questions. These two questions were 'Who are we?' and 'Why are we here?' This lab was a little confusing at first because we had to trouble shoot the button and make sure the text would change when it was pressed.
For this lab I used Dreamweaver CS6 and JavaScript to make the text change when the button was pressed. I used the script tag to make the JavaScript function work which is what we learned to complete this lab. I also changed the background color of the website so that it wouldn't look so plain. This lab will help me in my future because now I know how to change text with a button using JavaScript. I can now use these skills in my future labs and projects.


No comments:
Post a Comment