Chapter 9

  1. The prompt dialogue.

  2. Here’s the timer:

  3. setTimeout(callFunction,3000,paramA,paramB);
  4. The location object can be used to change what’s loaded in the browser. The individual items or the href property can be set to provide an entire URL.

  5. The navigator object can be accessed to get information about the browser, whether cookies are enabled, and so on.

  6. Here’s the code for the window:

  7. var newWindow = window.open("http://help.htm","","width=400,height=400,toolbar=no,status=no");

Get Learning JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.