Fire-House 58

Objects

window &
document

o-3


JavaScript:
firehouse58.com  

 

Hard Reload
To See Menu

Anchor Object

Document Object

document.anchor

<a name=

 

document

The document itself.

 

Frame Object

History Object

to access a child frame from the parent
frame[#].document
to access the parent from a child frame
parent.location.href
to access a child frame from another child frame
parent.frame[#].document
document.history

The browser stores a history of visited sites.The history can be accessed using an href. For example, to send the browser back 5 sites:

href="JavaScript:history.go(-5)

 

Link Object

Location Object

document.link

Navigation necessity.
<a href=

 

location.href
Navigator Object

Window Object

navigator.appname

The browser window itself


 
 
window.open()      method

 

<script language="JavaScript">
<!--
newWin = null

function more() {

Create a new window by using the window.open() method. Define the "url", "title", & "options". Use an empty string "" to create a window on the fly. By naming the window, cross window communication is possible.

  


var options="height=400,width=400,"
+top=5,left=0,status=yes,location=no,"
+"toolbars=yes,directories=no,menubar=yes,"
+ "scrollbars=yes,resizable=yes;"

Window Options default underlined
height pixels toolbars yes/no
width pixels directories yes/no
top MSIE pos. x menubar yes/no
left MSIE pos. y scrollbars yes/no
status yes/no resizable yes/no
location yes/no copyhistory yes/no
       
newWin.open("url","title",options) }

//-->
</script>

 

[back]   [home]   [next]