IFrame seamless-eigenschap

Definitie en gebruik

seamless Eigenschapsinstellingen of -terugkeer die aangeven of <iframe> eruit moet zien alsof het een deel van het document is dat wordt ingesloten (zonder rand of scrollbalk).

Deze eigenschap reflecteert HTML seamless-eigenschap.

Voorbeeld

Controleer of <iframe> eruitziet alsof het een deel van het document is dat wordt ingesloten (zonder rand of scrollbalk):

var x = document.getElementById("myFrame").seamless;

Syntaxis

Geef de seamless-eigenschap terug:

iframeObject.seamless

Stel de seamless-eigenschap in:

iframeObject.seamless = true|false

Eigenschapswaarde

Waarde Beschrijving
true|false

Stel in of iframe eruit moet zien alsof het een deel van het document is dat wordt ingesloten (zonder rand of scrollbalk).

  • true - iframe moet eruit zien als een deel van de document dat wordt ingesloten
  • false - default. The iframe should not look like it is part of the document.

Technical details

Return value: Boolean value, if the iframe looks like it is part of the document, it returns true, otherwise it returns false.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Not supported Not supported Not supported Not supported Not supported

Related pages

HTML reference manual:HTML <iframe> seamless attribute