Saturday, September 20, 2014

Lab 1

In this lab, Lab 1, It was my first introduction to Java Script. The Objective of the Lab was to trigger a change in phrase when clicking on the button that says "Click Me". At the top is my heading that  says " My First JavaScript". After that I added a paragraph code that says " JavaScript can change the content of an HTML element". I added a Javascript with functions like these:
"function myFunction() {
document.getElementById("demo").innerHTML="Hello JavaScript!";}
"
What this does is that the words "This is a demonstration"  to " Hello JavaScript. What I learned from this that Java script has different functions that can lead to very interesting changes and its very simple, much more simple as compared to action script, which also uses functions.















No comments:

Post a Comment