Friday, October 9, 2015

Lab 4

Tenzing Younten
Web Client Programming

In this lab, I used the same concept of creating pop ups but with different functions. Unlike the previous lab, I had to insert numbers for the computer to do rudimentary math equations. The softwares that I used for this lab were JavaScript and Dreamweaver. I used "alert" tag which triggers the browser to create a popup whenever a user visits the page. In the popup, I inserted a question which was "What is the sum of 5 and 7?". Then when a user clicks "ok", they are presented with the answer to the question as well as the product, difference and quotient of 5 and 7. I defined variables which allowed the lab to work efficiently. For instance, I defined s1 and s2 as 5 and 7, then defining sum as the sum of 5 and 7, and so on. After that, I put + in the "document.write" tag to connect the variables and the text which was related to each variable. This lab will be helpful for me in the future by allowing me to create an interactive webpage and website. Besides, it will also assist me in creating popups with my upcoming labs and projects.

















No comments:

Post a Comment