Thursday, October 1, 2015

Lab #3

This lab was about using JavaScript to create popups in a web browser. I started off by creating an html page using Dreamweaver CS6 and writing down the codes for the script. I also used variables to define a word. For instance, I put the variable "x" to represent my name. This would allow me to insert the variable to insert my name in a sentence. To do so, I had to insert "+x" in the middle of the sentence so that it adds in the following sentence. To write a sentence I used "document.write" and typed the sentence. Following that, I inserted "alert" which is the code for popups and put the message that I wanted the users to see. One of the hardest things in this lab was to figure out where there was a slight mistake because it would cause the whole thing to not work with the slightest misspell/mistake.

This ability of creating Popups can be really important. Popups allow users to be more interactive and be able to have the ability of making choices on whether they want to proceed to the next page/step or not. In addition, popups allow users to be aware of any kind of malicious websites and sometimes it can be used harmfully to cause the users download malicious softwares by clicking the popups. 







No comments:

Post a Comment