Write a line of code using the Navigator object to return the web browser to a v
ID: 3763339 • Letter: W
Question
Write a line of code using the Navigator object to return the web browser to a variable called myFavoriteBrowser.
Write a line of code using the Screen object to return the width of the display screen, not including operating system features such as the Microsoft Windows Taskbar, to a variable called myScreenWidth.
Write a line of JavaScript code using the Windows object and other properties to open a new web browser window with the Yahoo home page displaying and a width of 500 pixels and height of 500 pixels.
Write a line of code using the Location object to return the full uniform resource locator (URL) of a web page to a variable called MyVisit.
Explanation / Answer
1.
var myFavoriteBrowser = navigator.appName;
2.
var myScreenHeight = screen.height;
3.
MyWindow = window.open("http://www.yahoo.com/",width=500,height=500);
4.
var MyVisit = document.location.href;
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.