Javascript Objects

1. Write a line of code using the Location object to return the uniform resource locator (URL) of a Web page to a variable called myWebPage.

2. Write a line of code using the Navigator object to return the Web browser name to a variable called myBrowserName.

3. Write a line of code using the Screen object to return the height of the display screen, not including operating system features such as the Windows Taskbar, to a variable called myScreenHeight.

4. Write a line of JavaScript code using the Window object and other properties to open a new Web browser window with www.google.com displaying and no menu bar.

Leave a Reply

Your email address will not be published. Required fields are marked *