Search⌘ K

Exercise: Know Your Browser

Explore how to manipulate the DOM and access browser and URL information using JavaScript. This lesson guides you through removing unnecessary HTML elements and displaying the browser name, window size, and URL details. You'll practice using objects like window.navigator and window.location to enhance web pages dynamically.

We'll cover the following...

Task

A web developer only knows HTML. He is struggling to extract information from the browser and view it on the web page. He wants a web page with info about the browser and URL, but can’t do it with just HTML. He has given you the HTML page. You can manipulate all you want to get the needed info. ...