Chapter 9
The prompt dialogue.
HereâÂÂs the timer:
setTimeout(callFunction,3000,paramA,paramB);
The
location
object can be used to change whatâÂÂs loaded in the browser. The individual items or thehref
property can be set to provide an entire URL.The
navigator
object can be accessed to get information about the browser, whether cookies are enabled, and so on.HereâÂÂs the code for the window:
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.