N
P
C
C
T
B
H
P
N
This lab focuses on the JavaScript programming language. We will use HTML, CSS, and JavaScript
to build resizable page previewer.
Lab Resources - JavaScript:
Activities:
Build a resizable web page previewer:
- Starting with an empty html file, add html document structure, a heading, and a suitably-placed iframe.
-
Add hide, minus, and plus buttons just above the iframe, similar to the image-sizer
demonstration in class.
-
Add, to the right of the buttons, a textbox that allows you to enter a page url
to preview in the iframe.
-
Define, and support a default url for the previewer.
-
You will need to provide some JavaScript to change the src parameter of the iframe.
-
iframe will allow following links, but sites can block loads into an iframe.
w3schools.com does that, for example.
-
This is an iframe:
-
The ImageSizer is a good starting point.
Please zip your Lab #4 folder and Submit Lab. Note: just zip, no rar, tar, ...