Thursday, November 17, 2016

Lab 2


The purpose of lab #2 was to learn how to properly link a JavaScript document into our html file. The JavaScript file had to contain nothing but the popouts code, which was in a form tag. To do this I created a new file and saved it as lab2.js then introduced the code where I also had written my three goals. Afterwards I went back to the html file and using <script type="text/javascript"  src="nameoffile.js"></script> i linked it. I used the form tag to create buttons then i uploaded it.
This lab will be useful for future projects because it helps for organization purposes and also because it is a very simple way to demonstrate your ability and knowledge on popouts.




No comments:

Post a Comment