diff options
Diffstat (limited to 'files/pt-br/web/html/element/iframe/index.html')
-rw-r--r-- | files/pt-br/web/html/element/iframe/index.html | 178 |
1 files changed, 178 insertions, 0 deletions
diff --git a/files/pt-br/web/html/element/iframe/index.html b/files/pt-br/web/html/element/iframe/index.html new file mode 100644 index 0000000000..c202629c8e --- /dev/null +++ b/files/pt-br/web/html/element/iframe/index.html @@ -0,0 +1,178 @@ +--- +title: <iframe> +slug: Web/HTML/Element/iframe +translation_of: Web/HTML/Element/iframe +--- +<p><span id="ouHighlight__0_2TO0_0">O <strong>elemento</strong></span><strong><span id="noHighlight_0.6669463853503006"> </span><span id="ouHighlight__4_7TO2_5">HTML</span><span id="noHighlight_0.9190923802093316"> </span></strong><span id="ouHighlight__9_16TO7_14"><strong><iframe></strong> (ou <em>elemento HTML </em></span><em><span id="ouHighlight__35_40TO29_34">inline</span><span id="noHighlight_0.8618476026650426"> </span><span id="ouHighlight__42_46TO36_40">frame</span></em><span id="ouHighlight__48_55TO54_54">)</span><span id="noHighlight_0.7068545802198582"> </span><span id="ouHighlight__57_66TO56_65">representa</span><span id="noHighlight_0.7526791453051795"> </span><span id="ouHighlight__68_68TO67_68">um</span><span id="noHighlight_0.44971730954195105"> </span><span id="ouHighlight__86_92TO70_77">contexto</span><span id="noHighlight_0.09083070847867625"> de </span><span id="ouHighlight__77_84TO82_90">navegação</span><span id="noHighlight_0.37968552813404615"> </span><span id="ouHighlight__70_75TO92_99">aninhado</span><span id="noHighlight_0.5995269340430607">,</span><span id="noHighlight_0.008704451712585215"> </span><span id="ouHighlight__95_105TO102_113">efetivamente</span><span id="noHighlight_0.5931006711248601"> </span><span id="ouHighlight__107_115TO115_124">incorporando</span><span id="noHighlight_0.6374518958720761"> </span><span id="ouHighlight__117_123TO126_130">outra</span><span id="noHighlight_0.8893985313976909"> </span><span id="ouHighlight__130_133TO132_137">página</span><span id="noHighlight_0.8866311110803541"> </span><span id="ouHighlight__125_128TO139_142">HTML</span><span id="noHighlight_0.23447126715327776"> </span><span id="ouHighlight__135_138TO144_147">para</span><span id="noHighlight_0.07307917672825964"> </span><span id="ouHighlight__140_142TO149_149">a</span><span id="noHighlight_0.12950057344301286"> </span><span id="ouHighlight__152_155TO151_156">página</span><span id="noHighlight_0.26467654674888124"> </span><span id="ouHighlight__144_150TO158_162">atual</span><span id="noHighlight_0.13149866746429495">.</span><span id="noHighlight_0.1583040075152209"> </span><span id="ouHighlight__158_159TO165_166">Em</span><span id="noHighlight_0.5442761031849714"> </span><span id="ouHighlight__161_164TO168_171">HTML</span><span id="noHighlight_0.7415189012773161"> </span><span id="ouHighlight__166_169TO173_176">4.01</span><span id="noHighlight_0.18966050608785345">,</span><span id="noHighlight_0.041719693152791726"> </span><span id="ouHighlight__172_172TO179_180">um</span><span id="noHighlight_0.3042841997000498"> </span><span id="ouHighlight__174_181TO182_190">documento</span><span id="noHighlight_0.23497132229022943"> </span><span id="ouHighlight__183_185TO192_195">pode</span><span id="noHighlight_0.4008871450338423"> </span><span id="ouHighlight__187_193TO197_202">conter</span><span id="noHighlight_0.4071292878658189"> </span><span id="ouHighlight__195_195TO204_206">uma</span><span id="noHighlight_0.47457438988490635"> </span><span id="ouHighlight__197_200TO208_213">cabeça</span><span id="noHighlight_0.3373122542468538"> </span><span id="ouHighlight__202_204TO215_215">e</span><span id="noHighlight_0.23651855095925434"> </span><span id="ouHighlight__206_206TO217_218">um</span><span id="noHighlight_0.6411380227090818"> </span><span id="ouHighlight__208_211TO220_224">corpo</span><span id="noHighlight_0.08602879881083225"> </span><span id="ouHighlight__213_214TO226_227">ou</span><span id="noHighlight_0.37958973706042986"> </span><span id="ouHighlight__216_216TO229_231">uma</span><span id="noHighlight_0.45566362837898144"> </span><span id="ouHighlight__218_221TO233_238">cabeça</span><span id="noHighlight_0.048174792122936794"> </span><span id="ouHighlight__223_225TO240_240">e</span><span id="noHighlight_0.6052151772063192"> </span><span id="ouHighlight__227_227TO242_243">um</span><span id="noHighlight_0.527561942369029"> </span><span id="ouHighlight__229_238TO245_252">conjunto</span><span id="noHighlight_0.2241339892956346"> de </span><span id="ouHighlight__229_238TO257_264">quadros,</span><span id="noHighlight_0.7466403298536145"> </span><span id="ouHighlight__240_242TO266_268">mas</span><span id="noHighlight_0.60661452595949"> </span><span id="ouHighlight__244_246TO270_272">não</span><span id="noHighlight_0.2055690028736905"> </span><span id="ouHighlight__248_251TO274_278">tanto</span><span id="noHighlight_0.17056980349635997"> </span><span id="ouHighlight__253_253TO280_281">um</span><span id="noHighlight_0.1816371921642101"> </span><span id="ouHighlight__255_258TO283_287">corpo</span><span id="noHighlight_0.6356568181960188"> </span><span id="ouHighlight__260_262TO289_289">e</span><span id="noHighlight_0.024514355871078586"> </span><span id="ouHighlight__264_264TO291_292">um</span><span id="noHighlight_0.8940702635096576"> </span><span id="ouHighlight__266_275TO294_301">conjunto</span><span id="noHighlight_0.8977448712057324"> de </span><span id="ouHighlight__266_275TO306_313">quadros.</span><span id="noHighlight_0.0918193409065523"> </span><span id="ouHighlight__277_283TO315_324">No entanto</span><span id="noHighlight_0.1762661889772812">,</span><span id="noHighlight_0.48158682580055384"> </span><span id="ouHighlight__286_287TO327_328">um</span><span id="noHighlight_0.3295608382994803"> </span><span id="ouHighlight__289_296TO330_337"><iframe> </span><span id="ouHighlight__298_300TO338_341">pode</span><span id="noHighlight_0.4581118623696281"> </span><span id="ouHighlight__302_303TO343_345">ser</span><span id="noHighlight_0.9491726714358877"> </span><span id="ouHighlight__305_308TO347_351">usado</span><span id="noHighlight_0.7935326599727865"> </span><span id="ouHighlight__310_315TO353_358">dentro</span><span id="noHighlight_0.8882364440599055"> de </span><span id="ouHighlight__317_317TO363_364">um</span><span id="noHighlight_0.35659349587226235"> </span><span id="ouHighlight__335_338TO366_370">corpo</span><span id="noHighlight_0.6180173905423034"> de </span><span id="ouHighlight__326_333TO375_383">documento</span><span id="noHighlight_0.6325067995535371"> </span><span id="ouHighlight__319_324TO385_390">normal</span><span id="noHighlight_0.5489940461070744">.</span><span id="noHighlight_0.719136343959252"> </span><span id="ouHighlight__341_344TO393_396">Cada</span><span id="noHighlight_0.46662421428049483"> </span><span id="ouHighlight__355_361TO398_405">contexto</span><span id="noHighlight_0.42272719072589454"> de </span><span id="ouHighlight__346_353TO410_418">navegação</span><span id="noHighlight_0.4776198962890033"> </span><span id="ouHighlight__363_365TO420_422">tem</span><span id="noHighlight_0.8284713294373617"> </span><span id="ouHighlight__367_369TO424_426">sua</span><span id="noHighlight_0.11245358630162183"> </span><span id="ouHighlight__371_373TO428_434">própria</span><span id="noHighlight_0.6967118603938671"> </span><span id="ouHighlight__383_389TO436_443">história</span><span id="noHighlight_0.9731849685107241"> de </span><span id="ouHighlight__375_381TO448_453">sessão</span><span id="noHighlight_0.10662184845626404"> </span><span id="ouHighlight__391_393TO455_455">e</span><span id="noHighlight_0.6199151545361639"> o </span><span id="ouHighlight__402_409TO459_467">documento</span><span id="noHighlight_0.5109426886358104"> </span><span id="ouHighlight__395_400TO469_473">ativo</span><span id="noHighlight_0.14975366384711874">.</span><span id="noHighlight_0.3061514493180468"> </span><span id="ouHighlight__412_414TO476_476">O</span><span id="noHighlight_0.1127544463071044"> </span><span id="ouHighlight__425_431TO478_485">contexto</span><span id="noHighlight_0.8936920262443369"> de </span><span id="ouHighlight__416_423TO490_498">navegação</span><span id="noHighlight_0.33159829590847844"> </span><span id="ouHighlight__433_436TO500_502">que</span><span id="noHighlight_0.19422162750175248"> </span><span id="ouHighlight__438_445TO504_509">contém</span><span id="noHighlight_0.7257538370863912"> </span><span id="ouHighlight__447_449TO511_511">o</span><span id="noHighlight_0.5658871331962624"> </span><span id="ouHighlight__460_466TO513_520">conteúdo</span><span id="noHighlight_0.09444488508842569"> </span><span id="ouHighlight__451_458TO522_532">incorporado</span><span id="noHighlight_0.9102766420541839"> </span><span id="ouHighlight__468_469TO534_534">é</span><span id="noHighlight_0.7721214942019884"> </span><span id="ouHighlight__471_476TO536_542">chamado</span><span id="noHighlight_0.4698330433441296"> </span><span id="ouHighlight__478_480TO544_544">o</span><span id="noHighlight_0.2495339172689015"> </span><span id="ouHighlight__482_487TO546_548">pai</span><span id="noHighlight_0.9252421234467765"> de </span><span id="ouHighlight__498_504TO553_560">contexto</span><span id="noHighlight_0.9453239564748947"> de </span><span id="ouHighlight__489_496TO565_573">navegação</span><span id="noHighlight_0.09080985933367569">.</span><span id="noHighlight_0.8377870469347468"> </span><span id="ouHighlight__507_509TO576_576">O</span><span id="noHighlight_0.9334447973584516"> </span><span id="ouHighlight__530_536TO578_585">contexto</span><span id="noHighlight_0.2227516502872307"> de </span><span id="ouHighlight__521_528TO590_598">navegação</span><span id="noHighlight_0.16300547091532674"> </span><span id="ouHighlight__511_519TO600_616">de nível superior</span><span id="noHighlight_0.37812902714977636"> </span><span id="ouHighlight__538_543TO618_621">(que</span><span id="noHighlight_0.06803102089807028"> </span><span id="ouHighlight__549_550TO623_625">não</span><span id="noHighlight_0.8934888127100214"> </span><span id="ouHighlight__545_547TO627_629">tem</span><span id="noHighlight_0.11394040192067251"> um </span><span id="ouHighlight__552_558TO634_637">pai)</span><span id="noHighlight_0.19702167113012076"> </span><span id="ouHighlight__563_571TO639_649">normalmente</span><span id="noHighlight_0.5464819057687249"> </span><span id="ouHighlight__560_561TO651_651">é</span><span id="noHighlight_0.7935925262500484"> </span><span id="ouHighlight__573_575TO653_653">a</span><span id="noHighlight_0.5204863466938037"> </span><span id="ouHighlight__585_590TO655_660">janela</span><span id="noHighlight_0.6555245992130596"> do </span><span id="ouHighlight__577_583TO665_673">navegador</span><span id="noHighlight_0.2248931828460552">.</span></p> + +<div> </div> + +<ul class="htmlelt"> + <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>, embedded content, interactive content, palpable content.</li> + <li><dfn>Permitted content</dfn>Special, see prose</li> + <li><dfn>Tag omission</dfn> {{no_tag_omission}}</li> + <li><dfn>Permitted parent elements</dfn> Any element that accepts embedded content.</li> + <li><dfn>DOM interface</dfn> {{domxref("HTMLIFrameElement")}}</li> +</ul> + +<h2 id="Atributos">Atributos</h2> + +<p><span style="line-height: 21px;">Este elemento inclui os </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">atributos globais</a><span style="line-height: 21px;">.</span></p> + +<dl> + <dt>{{htmlattrdef("align")}} {{deprecated_inline("html4.01")}}, {{obsolete_inline("html5")}}</dt> + <dd> + <div><span id="ouHighlight__0_2TO0_0">O</span><span id="noHighlight_0.24997786392821197"> </span><span id="ouHighlight__4_12TO2_12">alinhamento</span><span id="noHighlight_0.22656558496550771"> </span><span id="ouHighlight__17_20TO14_18">deste</span><span id="noHighlight_0.7836677945677705"> </span><span id="ouHighlight__22_28TO20_27">elemento</span><span id="noHighlight_0.16174666443448748"> </span><span id="ouHighlight__30_44TO29_41">em relação ao</span><span id="noHighlight_0.14496186706385028"> </span><span id="ouHighlight__62_68TO43_50">contexto</span><span id="noHighlight_0.7543316592254892">.</span></div> + </dd> + <dt>{{htmlattrdef("allowfullscreen")}}</dt> + <dd> + <div><span id="ouHighlight__0_3TO0_3">Esse</span><span id="noHighlight_0.6314338952823772"> </span><span id="ouHighlight__5_13TO5_12">atributo</span><span id="noHighlight_0.7825376612287125"> </span><span id="ouHighlight__15_17TO14_17">pode</span><span id="noHighlight_0.19479025260229565"> </span><span id="ouHighlight__19_20TO19_21">ser</span><span id="noHighlight_0.5839816205367978"> </span><span id="ouHighlight__22_24TO23_30">definido</span><span id="noHighlight_0.5360761086745299"> </span><span id="ouHighlight__26_27TO32_35">como</span><span id="noHighlight_0.10629688398878151"> </span><span id="ouHighlight__29_32TO37_40">true</span><span id="noHighlight_0.8982082398690693"> </span><span id="ouHighlight__34_35TO42_43">se</span><span id="noHighlight_0.555583733569748"> </span><span id="ouHighlight__37_39TO45_45">o</span><span id="noHighlight_0.9959450998202188"> </span><span id="ouHighlight__41_45TO47_52">quadro</span><span id="noHighlight_0.03228124818894018"> </span><span id="ouHighlight__47_48TO54_54">é</span><span id="noHighlight_0.9666103340848506"> </span><span id="ouHighlight__50_56TO56_64">permitido</span><span id="noHighlight_0.47323473457719744"> </span><span id="ouHighlight__58_59TO66_69">para</span><span id="noHighlight_0.6652721099398025"> </span><span id="ouHighlight__61_62TO71_73">ser</span><span id="noHighlight_0.2868850867204916"> </span><span id="ouHighlight__64_69TO75_82">colocado</span><span id="noHighlight_0.5987613350152338"> </span><span id="ouHighlight__71_74TO84_85">em</span><span id="noHighlight_0.7130411807442527"> </span><span id="ouHighlight__88_91TO87_90">modo</span><span id="noHighlight_0.84209501528823"> de </span><span id="ouHighlight__81_86TO95_98">tela</span><span id="noHighlight_0.011103003659679644"> </span><span id="ouHighlight__76_79TO100_104">cheia</span><span id="noHighlight_0.24490984951075978">,</span><span id="noHighlight_0.7441355281198541"> </span><span id="ouHighlight__96_102TO107_114">chamando</span><span id="noHighlight_0.04897604081532975"> </span><span id="ouHighlight__104_106TO116_118">seu</span><span id="noHighlight_0.31073403106888036"> </span><span id="ouHighlight__154_159TO120_125">método</span><span id="noHighlight_0.33844835170911885"> de </span><span id="ouHighlight__108_152TO130_174">{{domxref("element.mozRequestFullScreen()")}}</span><span id="noHighlight_0.9401779656159432">.</span><span id="noHighlight_0.12303971833778898"> </span><span id="ouHighlight__162_163TO177_178">Se</span><span id="noHighlight_0.14507633873940823"> </span><span id="ouHighlight__165_168TO180_183">isto</span><span id="noHighlight_0.10471874886244253"> </span><span id="ouHighlight__170_174TO185_195">não estiver</span><span id="noHighlight_0.9838197014966836"> </span><span id="ouHighlight__176_178TO197_204">definido</span><span id="noHighlight_0.5479055955875245">,</span><span id="noHighlight_0.8650559681603547"> </span><span id="ouHighlight__181_183TO207_207">o</span><span id="noHighlight_0.11166700213781905"> </span><span id="ouHighlight__185_191TO209_216">elemento</span><span id="noHighlight_0.2986061750343061"> </span><span id="ouHighlight__193_197TO218_225">não pode</span><span id="noHighlight_0.91341044207422"> </span><span id="ouHighlight__199_200TO227_229">ser</span><span id="noHighlight_0.3103661185116665"> </span><span id="ouHighlight__202_207TO231_238">colocado</span><span id="noHighlight_0.5834952719850122"> </span><span id="ouHighlight__209_212TO240_241">em</span><span id="noHighlight_0.8695569740954532"> </span><span id="ouHighlight__226_229TO243_246">modo</span><span id="noHighlight_0.19858498593448692"> de </span><span id="ouHighlight__219_224TO251_254">tela</span><span id="noHighlight_0.8800761426805551"> </span><span id="ouHighlight__214_217TO256_260">cheia</span><span id="noHighlight_0.011155730652686601">.</span></div> + </dd> + <dt>{{htmlattrdef("frameborder")}} {{HTMLVersionInline(4)}} only</dt> + <dd> + <div><span id="ouHighlight__0_2TO0_0">O</span><span id="noHighlight_0.8512278081263427"> </span><span id="ouHighlight__4_8TO2_6">valor</span><span id="noHighlight_0.733367858878109"> </span><span id="ouHighlight__10_10TO8_8">1</span><span id="noHighlight_0.16853479544823474"> </span><span id="ouHighlight__12_15TO10_11">(o</span><span id="noHighlight_0.491871002236276"> </span><span id="ouHighlight__17_24TO13_19">padrão) </span><span id="noHighlight_0.6669094153458415">pede </span><span id="ouHighlight__32_34TO29_30">ao</span><span id="noHighlight_0.4320332696441004"> </span><span id="ouHighlight__36_42TO32_40">navegador</span><span id="noHighlight_0.16802561710287067"> </span><span id="ouHighlight__44_45TO42_45">para</span><span id="noHighlight_0.7875067682094121"> </span><span id="ouHighlight__47_50TO47_54">desenhar</span><span id="noHighlight_0.864261459064067"> </span><span id="ouHighlight__52_52TO56_58">uma</span><span id="noHighlight_0.2056052045991542"> </span><span id="ouHighlight__54_59TO60_64">borda</span><span id="noHighlight_0.544041546749916"> </span><span id="ouHighlight__61_67TO66_70">entre</span><span id="noHighlight_0.5758489986996733"> </span><span id="ouHighlight__69_72TO72_75">este</span><span id="noHighlight_0.5905069499949025"> </span><span id="ouHighlight__74_78TO77_82">quadro</span><span id="noHighlight_0.845490504311595"> </span><span id="ouHighlight__80_82TO84_84">e</span><span id="noHighlight_0.8643676865658729"> </span><span id="ouHighlight__84_88TO86_93">todos os</span><span id="noHighlight_0.17515847864621453"> </span><span id="ouHighlight__90_94TO95_100">outros</span><span id="noHighlight_0.2287674149288701"> </span><span id="ouHighlight__96_100TO102_108">quadros</span><span id="noHighlight_0.6074431009211665">.</span><span id="noHighlight_0.27959841709816163"> </span><span id="ouHighlight__103_105TO111_111">O</span><span id="noHighlight_0.2294694830679993"> </span><span id="ouHighlight__107_111TO113_117">valor</span><span id="noHighlight_0.2738371835815065"> </span><span id="ouHighlight__113_113TO119_119">0</span><span id="noHighlight_0.5289409112512771"> </span><span id="ouHighlight__115_119TO121_127">informa</span><span id="noHighlight_0.8734286650339449"> </span><span id="ouHighlight__121_123TO129_130">ao</span><span id="noHighlight_0.1563052178218327"> </span><span id="ouHighlight__125_131TO132_140">navegador</span><span id="noHighlight_0.9260263574232861"> </span><span id="ouHighlight__137_138TO142_145">para</span><span id="noHighlight_0.3763038180916595"> </span><span id="ouHighlight__133_135TO147_149">não</span><span id="noHighlight_0.6695026090692272"> </span><span id="ouHighlight__140_143TO151_156">traçar</span><span id="noHighlight_0.8360238705207243"> </span><span id="ouHighlight__145_145TO158_160">uma</span><span id="noHighlight_0.13571258961256466"> </span><span id="ouHighlight__147_152TO162_170">fronteira</span><span id="noHighlight_0.8126339175134085"> </span><span id="ouHighlight__154_160TO172_176">entre</span><span id="noHighlight_0.12978332759636757"> </span><span id="ouHighlight__162_165TO178_181">este</span><span id="noHighlight_0.20431415927445767"> </span><span id="ouHighlight__167_171TO183_188">quadro</span><span id="noHighlight_0.5415896054190845"> </span><span id="ouHighlight__173_175TO190_190">e</span><span id="noHighlight_0.2676877942243148"> </span><span id="ouHighlight__177_181TO192_197">outros</span><span id="noHighlight_0.30157822837874426"> </span><span id="ouHighlight__183_188TO199_205">quadros</span><span id="noHighlight_0.5126415599703605">.</span></div> + </dd> + <dt>{{htmlattrdef("height")}}</dt> + <dd>Indica a altura do quadro {{HTMLVersionInline(5)}} em pixels CSS, ou {{HTMLVersionInline(4.01)}} em pixels ou porcentagem.</dd> + <dt>{{htmlattrdef("longdesc")}} {{HTMLVersionInline(4)}} only</dt> + <dd>Uma URI de uma longa descrição do quadro. <span id="ouHighlight__0_5TO0_7">Devido à</span><span id="noHighlight_0.9946345415679745"> </span><span id="ouHighlight__18_23TO9_21">má utilização</span><span id="noHighlight_0.9820779455486066"> </span><span id="ouHighlight__7_16TO23_34">generalizada</span><span id="noHighlight_0.9973237671575901">,</span><span id="noHighlight_0.0557508791974346"> </span><span id="ouHighlight__26_29TO37_40">isto</span><span id="noHighlight_0.5179997381856471"> </span><span id="ouHighlight__34_36TO42_44">não</span><span id="noHighlight_0.3133448057871634"> </span><span id="ouHighlight__31_32TO46_46">é</span><span id="noHighlight_0.93409520860344"> </span><span id="ouHighlight__38_44TO48_51">útil</span><span id="noHighlight_0.9381802688623686"> </span><span id="ouHighlight__46_48TO53_56">para</span><span id="noHighlight_0.9321174723389496"> </span><span id="ouHighlight__61_68TO58_68">navegadores</span><span id="noHighlight_0.10856251225442087"> </span><span id="ouHighlight__50_59TO70_80">não-visuais</span><span id="noHighlight_0.7173030814410857">.</span></dd> + <dt>{{htmlattrdef("marginheight")}} {{HTMLVersionInline(4)}} only</dt> + <dd> + <div><span id="ouHighlight__0_2TO0_0">A</span><span id="noHighlight_0.716841988006143"> </span><span id="ouHighlight__4_9TO2_11">quantidade</span><span id="noHighlight_0.2198611599567401"> </span><span id="ouHighlight__11_12TO13_14">de</span><span id="noHighlight_0.6800827882059048"> </span><span id="ouHighlight__14_18TO16_21">espaço</span><span id="noHighlight_0.8714907239880782"> </span><span id="ouHighlight__20_21TO23_24">em</span><span id="noHighlight_0.3099771487774271"> </span><span id="ouHighlight__23_28TO26_31">pixels</span><span id="noHighlight_0.23489502053200456"> </span><span id="ouHighlight__30_36TO33_37">entre</span><span id="noHighlight_0.07396371679731578"> o </span><span id="ouHighlight__50_56TO41_48">conteúdo</span><span id="noHighlight_0.03618832978644265"> </span><span id="ouHighlight__42_48TO50_58">do quadro</span><span id="noHighlight_0.7393586125152469"> </span><span id="ouHighlight__58_60TO60_60">e</span><span id="noHighlight_0.976571300065446"> </span><span id="ouHighlight__62_64TO62_65">suas</span><span id="noHighlight_0.03782211942024444"> </span><span id="ouHighlight__81_87TO67_73">margens</span><span id="noHighlight_0.14352454281413507"> </span><span id="ouHighlight__66_68TO75_82">superior</span><span id="noHighlight_0.2757160105863739"> </span><span id="ouHighlight__70_72TO84_84">e</span><span id="noHighlight_0.4392555322014181"> </span><span id="ouHighlight__74_79TO86_93">inferior</span><span id="noHighlight_0.8930821342848153">.</span></div> + </dd> + <dt>{{htmlattrdef("marginwidth")}} {{HTMLVersionInline(4)}} only</dt> + <dd>A quantidade de espaço em pixels entre o conteúdo dos quadros e suas margens direita e esquerda.</dd> + <dt>{{htmlattrdef("mozallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}</dt> + <dd>Use <code><strong>allowfullscreen</strong></code> ao invés. Em Gecko 9.0 or later, this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd> + <dt>{{htmlattrdef("webkitallowfullscreen")}} {{non-standard_inline}} {{deprecated_inline}}</dt> + <dd>Use <code><strong>allowfullscreen</strong></code> ao invés. No Chrome 17 ou mais novo (e talvez mais antigo), this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.webkitRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd> + <dt>{{htmlattrdef("mozapp")}} {{non-standard_inline}}</dt> + <dd>For frames hosting an <a href="/en-US/docs/Apps" title="OpenWebApps">open web app</a>, this specifies the URL of the <a href="/en-US/docs/Apps/Manifest" title="Apps/Manifest">app manifest</a>. This ensures that the app is loaded with the right permissions. See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd> + <dt>{{htmlattrdef("mozbrowser")}} {{non-standard_inline}}</dt> + <dd>Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that {{domxref("window.top")}}<span id="summary_alias_container"><span id="short_desc_nonedit_display">, </span></span>{{domxref("window.parent")}}<span id="summary_alias_container"><span id="short_desc_nonedit_display">, </span></span>{{domxref("window.frameElement")}},<span id="summary_alias_container"><span id="short_desc_nonedit_display"> etc. will <em>not</em> reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions.</span></span> See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd> + <dt id="name-attribute">{{htmlattrdef("name")}}</dt> + <dd>A name for the embedded browsing context (or frame). This can be used as the value of the <code><strong>target</strong></code> attribute of an {{HTMLElement("a")}} or {{HTMLElement("form")}} element, or the formtarget attribute of an {{HTMLElement("input")}} or {{HTMLElement("button")}} element.</dd> + <dt>{{htmlattrdef("remote")}} {{non-standard_inline}}</dt> + <dd>Carrega a página do <em>frame</em> em um processo separado.</dd> + <dt>{{htmlattrdef("scrolling")}} {{HTMLVersionInline(4)}} only</dt> + <dd>Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame: + <ul> + <li><code>auto</code>: Só quando necessário.</li> + <li><code>yes</code>: Sempre mostrar uma barra de rolagem.</li> + <li><code>no</code>: Nunca mostrar uma barra de rolagem.</li> + </ul> + </dd> + <dt>{{htmlattrdef("sandbox")}} {{HTMLVersionInline(5)}} only</dt> + <dd>If specified as an empty string, this attribute enables extra restrictions on the content that can appear in the inline frame. The value of the attribute can either be an empty string (all the restrictions are applied), or a space-separated list of tokens that lift particular restrictions. Valid tokens are: + <ul> + <li><code>allow-same-origin</code>: Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.</li> + <li><code>allow-top-navigation</code>: Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.</li> + <li><code>allow-forms</code>: Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.</li> + <li><code>allow-popups</code>: Allows popups (like from window.open).</li> + <li><code>allow-scripts</code>: Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.</li> + <li><code>allow-pointer-lock</code>: Allows the embedded browsing context to use the <a href="/en-US/docs/WebAPI/Pointer_Lock">Pointer Lock API</a>.</li> + </ul> + + <div class="note"> + <p><strong>Note:</strong></p> + + <ul> + <li>When the embedded document has the same origin as the main page, it is strongly discouraged to use both <code>allow-scripts</code> and <code>allow-same-origin</code> at the same time, as that allows the embedded document to programmatically remove the <code>sandbox</code> attribute. Although it is accepted, this case is no more secure than not using the <code>sandbox</code> attribute.</li> + <li>Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed <code>iframe</code>. It is recommended that such content should be served from a <em>separate dedicated domain</em>, to limit the potential damage.</li> + <li>The <code>sandbox</code> attribute is not supported in Internet Explorer 9 and earlier versions, or in Opera.</li> + </ul> + </div> + </dd> + <dt>{{htmlattrdef("seamless")}} {{HTMLVersionInline(5)}} only</dt> + <dd>This <strong>Boolean attribute</strong> indicates that the browser should render the inline frame in a way that makes it appear to be part of the containing document, for example by applying CSS styles that apply to the <code><iframe></code> to the contained document before styles specified in that document, and by opening links in the contained documents in the parent browsing context (unless another setting prevents this). In XHTML, attribute minimization is forbidden, and the seamless attribute must be defined as <code><iframe seamless="seamless"></code>.</dd> + <dt>{{htmlattrdef("src")}}</dt> + <dd>The URL of the page to embed.</dd> + <dt>{{htmlattrdef("srcdoc")}} {{HTMLVersionInline(5)}} only</dt> + <dd>The content of the page that the embedded context is to contain. This attribute is expected to be used together with the sandbox and seamless attributes. If a browser supports the <code>srcdoc</code> attribute, it will override the content specified in the <code>src</code> attribute (if present). If a browser does NOT support the <code>srcdoc</code> attribute, it will show the file specified in the <code>src</code> attribute instead (if present).</dd> + <dt>{{htmlattrdef("width")}}</dt> + <dd>Indicates the width of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.</dd> +</dl> + +<h2 id="Scripting">Scripting</h2> + +<p>Inline frames, like {{HTMLElement("frame")}} elements, enter the {{domxref("window.frames")}} pseudo-array.</p> + +<p>From the DOM <code>iframe</code> element, scripts can get access to the {{domxref("window")}} object of the included HTML page via the <code>contentWindow</code> property. The <code>contentDocument</code> property refers to the document element inside the <code>iframe</code> (this is equivalent to <code>contentWindow.document</code>), but is not supported by Internet Explorer versions before IE8.</p> + +<p>From the inside of a frame, a script can get a reference to the parent window via {{domxref("window.parent")}}.</p> + +<p>Scripts trying to access a frame's content are subject to the <a href="/en-US/docs/Same_origin_policy_for_JavaScript" title="Same origin policy for JavaScript">same-origin policy</a>, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with {{domxref("window.postMessage")}}.</p> + +<h2 id="Exemplo_1">Exemplo 1</h2> + +<pre class="brush: html"><script> + var iframe = window.getElementsByTagName( "iframe" )[ 0 ]; + alert( "Frame title: " + iframe.contentWindow.title ); +</script> + + +<iframe src="page.html" width="300" height="300"> + <p>Your browser does not support iframes.</p> +</iframe></pre> + +<h2 id="Exemplo_2_Open_link_inside_iframe_in_another_tab">Exemplo 2: Open link inside iframe in another tab</h2> + +<div> +<pre class="brush: html"><base target="_blank" /> +<iframe width="400" height="215" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" + src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=es-419&amp;geocode=&amp;q=buenos+aires&amp;sll=37.0625,-95.677068&amp;sspn=38.638819,80.859375&amp;t=h&amp;ie=UTF8&amp;hq=&amp;hnear=Buenos+Aires,+Argentina&amp;z=11&amp;ll=-34.603723,-58.381593&amp;output=embed"> +</iframe><br /> +<small> + <a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=es-419&amp;geocode=&amp;q=buenos+aires&amp;sll=37.0625,-95.677068&amp;sspn=38.638819,80.859375&amp;t=h&amp;ie=UTF8&amp;hq=&amp;hnear=Buenos+Aires,+Argentina&amp;z=11&amp;ll=-34.603723,-58.381593" + style="color:#0000FF;text-align:left"> + See bigger map + </a> +</small></pre> +</div> + +<h2 id="Resultado">Resultado</h2> + +<p><a href="http://jsfiddle.net/pablofiumara/mCfAe/">Live example</a></p> + +<h2 id="Notas">Notas</h2> + +<div class="note"> +<p><strong>Note:</strong> Starting in {{Gecko("6.0")}}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{cssxref("border-radius")}}.</p> +</div> + +<h2 id="Specifications" name="Specifications">Especificações</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Especificação</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-iframe-element', '<iframe>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-iframe-element', '<iframe>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'present/frames.html#h-16.5', '<iframe>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">Compatibilidade dos navegadores</h2> + + + +<p>{{Compat("html.elements.iframe", 3)}}</p> + +<div>{{HTMLRef}}</div> |