Iframe some of the properties can be considered used as a highly adaptive

J_iframe to an iframe document object
1. J_iframe.document that iframe's document object (IE only)

2. J_iframe.contentWindow that iframe's window object
3. J_iframe.contentDocument that iframe's document object

2 and 3 are compatible with all browsers

Iframe inside the page if you want to get high, you can use
J_iframe.contentWindow.document.documentElement.scrollHeight;
Or
J_iframe.contentDocument.documentElement.scrollHeight;

IE and Firefox which does not seem to get to the same height, about poor 20px

分类:Web 时间:2010-09-13 人气:118
本文关键词: document object
分享到:
blog comments powered by Disqus

相关文章

  • Detailed JS in the document object 2009-06-29

    Detailed JS in the document object

  • XML Document Object Model (DOM) 2010-03-28

    XML Document Object Model (DOM) Be able to programmatically read, process and modify the XML document. XPath expression XPath expressions using the path notation (with the URL path notation used similar) addressing parts of XML documents. Expression

  • Document Object Model 2010-04-17

    Document Object Model

  • Document Object Size property 2010-04-25

    Document Object Size property

  • xml file parsing document object 2010-07-18

    # 1. Document object associated # # 1. Read XML documents, access to document objects. # SAXReader reader = new SAXReader (); # Document document = reader.read (new File ("input.xml")); # # # 2. Parsing XML text form, get document object. # Stri

  • 什么是DOM(Document Object Model)文档对象模型 2014-01-09

    文档对象模型(Document Object Model,DOM)是一种用于HTML和XML文档的编程接口.它给文档提供了一种结构化的表示方法,可以改变文档的内容和呈现方式 D:document 文档 浏览器加载的页面 DOM O:object 对象 页面及页面中的任何元素都是对象 M:module 模型 页面中的元素的组织形式 DOM被W3C组织设计为一种平台无关.语言无关的API,程序或脚本通过其动态访问.修改文档的内容.样式.结构. DOM是web 浏览器的运行规范,javascript借

  • Get the value of summary document object 2010-04-12

    Get the page object value document.getElementById, getElementsByName, document.all, document.forms [0]: Defines an element id, a direct reference to the elements with id attribute, so the only! Get is to the value of a single element can have more th

  • js in the window document object 2010-04-26

    js in the basic object is the basis of our operation of the document, including window document is the most basic, the first window to see it, \ window: He is the largest object in JavaScript, which is described in a browser window. Generally refer t

  • document object learning 2010-07-08

    getElementById method <div><p>test world</p></div> var e = document.getElementById('div2'); //1,DIV,null alert("nodeType:" + e.nodeType+ "\n" + "nodeName:" + e.nodeName +"\n" + "nodeValu

  • org.w3c.dom.Document object and a string Hu Zhuan 2010-03-23

    /** * XML org.w3c.dom.Document Go String */ public static String docToString(Document doc) { // XML Go string String xmlStr = ""; try { TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(); t.setOutputPro

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.112 (s). 12 q(s)