edit-article
Home
Up
Delete
Article Name:
Article Description:
a listing of the browser objects that you can work with including ] window, ] location, ] navigator ] history, ] screen,]
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;"> objects - browser</h1> <h2>[WHAT]</h2> <ol> <li>] controlling the users browser with your javascript. how to get(ex = screen resolution) and set the various properties of the users browser using the pre defined Browser objects properties and methods. </li> </ol> <h2>[WHY]</h2> <ol> <li>] browser objects are your gateway into controlling the clients browser from your javascript code. You can interface with the browser objects to set and get various properties from the client device that your code is running on</li> </ol> <h2>[WHERE]</h2> <ol> <li>]</li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>] <a href="http://www.w3schools.com/jsref/obj_window.asp" target="_blank">Window</a> , </li> <ol> <li><strong>] properties</strong> - closed, defaultStatus, document, frames, history, innerheight, innerWidth, length, location, name, navigator, opener, outerHeight, outerWidth, pageXoffset, pageYoffset, parent, screen, </li> <li><strong>] events - </strong></li> <li><strong>] methods -</strong> </li> <li>] </li> </ol> <li>] <a href="http://www.w3schools.com/jsref/obj_location.asp" target="_blank">Location</a></li> <ol> <li><strong>] properties - </strong></li> <li><strong>] events - </strong></li> <li><strong>] methods - </strong></li> <li>]</li> </ol> <li>] <a href="http://www.w3schools.com/jsref/obj_navigator.asp" target="_blank">Navigator</a> -</li> <ol> <li><strong>] properties - name (user-agent), version#,</strong></li> <li><strong>] events - </strong></li> <li><strong>] methods - </strong></li> </ol> <li>] <a href="http://www.w3schools.com/jsref/obj_history.asp" target="_blank">History</a> </li> <ol> <li><strong>] properties - </strong></li> <li><strong>] events - </strong></li> <li><strong>] methods - </strong></li> <li>]</li> </ol> <li>] <a href="http://www.w3schools.com/jsref/obj_screen.asp" target="_blank">Screen</a> </li> <ol> <li><strong>] properties - </strong></li> <li><strong>] events -</strong></li> <li><strong>] methods - </strong></li> </ol> <li><strong>*] NOTE =</strong> </li> <ol> <li>] the different browser vendors may offer support for additional objects.browse and their properties, methods and events</li> </ol></ol> <h2>[HOW-TO]</h2> <ol> <li>] window</li> <li>] location.href = <a href="http://www.google.com">http://www.google.com</a> - sets the current window to this location url</li> <li>] navigator</li> <li>] history</li> <li>] screen</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>]</li> </ol>