Attributo align DOM HTML
Definizione e uso
L'attributo align può impostare o restituire come allineare l'iframe rispetto al testo circostante.
Sintassi
iframeObject.align=left|right|top|middle|bottom
Esempio
Esempio seguente: l'iframe verrà allineato a destra in base al testo che lo circonda:
<html>
<body>
<iframe src="frame_a.htm" id="frame1"></iframe>
<p>Some text. Some text. Some text. Some text.</p>
<script type="text/javascript">
document.getElementById("frame1").align="right";
</script>
</body>
</html>