Javascript Reference
Categories: STYLE

javascript STYLE zIndex

@Aug. 15, 2009, 11:55 a.m.
zIndex Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

 

Read/Write  

For a positioned element, this specifies the stacking order relative to other elements within the same parent container.

 
Example
 
document.getElementById("myDIV").style.zIndex = "3"
 
Value

Integer. Netscape 6 prefers that this value be in string form (that's how the property returns its value), while IE returns a number.

 
Default

0


Powered by Linode.