Question: 1. Create an HTML page, leaving the body section blank other than including a set of script tags to reference a JavaScript file named prjs11_1.js

1. Create an HTML page, leaving the body section blank other than including a set of script tags to reference a JavaScript file named prjs11_1.js just before the closing tag. Save the file as pr11_1.html.

Create a JavaScript file and save it as prjs11_1.js. Use this file for steps 36.

3. Set a default value for a variable named mywin_width.

4. Assign the value of the window.innerWidth to mywin_width.

5. If the value of mywin_width is greater than or equal to 1000, send the viewer to the URL http://www.scripttheweb.com/js/. Otherwise, send the viewer to the URL http://www.scripttheweb.com/css/ (use the window.location property).

6. Save the JavaScript file and open the HTML file in your Web browser. Try changing the width and then reopening the page with the new width to see which Web page it gives you.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!