javascript IFRAME hspace, vspace

hspace, vspaceNN n/a IE 4 DOM n/a  

Read/Write  

Provide the pixel measure of horizontal and vertical margins surrounding an inline frame. The hspace property affects the left and right edges of the element equally; the vspace property affects the top and bottom edges of the element equally. These margins are not the same as margins set by style sheets, but they have the same visual effect.

 
Example
 
document.getElementById("myIframe").hspace = 5;
document.getElementById("myIframe").vspace = 8;
 
Value

Integer of pixel count.

 
Default

0


  • Mathan
    #1
    2008-12-29
    [Quote]
    How to remove or hide header area in an iframe box ?
  • Royhwa
    #2
    2009-01-04
    [Quote]
    [Mathan:How to rem...]
    You can't do this via iframe for security reasons.

    How about getting HTML source of that iframe URL and split begin and end of BODY section? try xmlhttp.
  • Guest #859
    #3
    2010-09-20
    [Quote]
    I cant access Hspace and vspace
Mathan
Royhwa
Guest #859

951,Nickname,Homepage or email,Comments here,Add comment