Thursday, September 18, 2014

Lab 1 - My First JavaScript





In lab 1, we had to create our first JavaScript. We learned how to change the content of an HTML element using JavaScript by creating a button that says "Click Me!" We used the code <button type= "button" onclick= "myFunction()"> Click Me!</button> to create a button. Below the button, it says "This is a demonstration" but when someone clicks on the button, it changes to "Hello JavaScript."                                                                         
 I can use this skill in my future labs to create buttons such as home button, labs button, etc.  

No comments:

Post a Comment