JavaScript Browser Object Model - Exercise 2

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// How can you read the browser viewport width?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// What is the difference between innerWidth and outerWidth?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// How can you navigate while replacing the current history entry?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// What does history.forward do?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// How can pushState change the URL without reloading?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// Why should popstate be handled in a single-page interface?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// How can you open a new browser window?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// Why can popup opening be blocked?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// How can you detect whether the browser is online?
const topic = 'bom';
console.log(topic);

Review the BOM behavior described in the question, then use the example to test your understanding.

javascript

// What does navigator.userAgent expose?
const topic = 'bom';
console.log(topic);