JavaScript Reference/Javascript Properties/frameSpacing

Материал из Web эксперт
Перейти к: навигация, поиск

"frameSpacing" Example

   <source lang="javascript">
   

<html> <body> <frameset id="myFrameset"

         onload="alert(window.myFrameset.frameSpacing);" 
         rows="200,*" 
         border="15px" 
         framespacing="2"> 

<frame name="topFrame" noresize scrolling="NO" src="http://www.wbex.ru"> <frame name="mainFrame" src="http://www.wbex.ru"> </frameset> </body> </html>


     </source>
   
  


"frameSpacing" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<frameset> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"frameSpacing" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Sets the spacing in pixels between frames of a frameset. Default value is 2.

Syntax:

window.framesetID.frameSpacing = value


     </source>