Is there any javascript algo that i can used to check for a website page height and put it as height of the iframe to render the page
step 1 : check what is the height of the website , let say www.cnn.com.my
step 2 : get the height , and put in ?
step 3: render the page in iframe with height 'pre-set'
No, because of the Same-Origin policy, you can only access the properties of a page from the same domain as the current page using JavaScript. Trying to access the properties of a page from another domain is known as cross-domain scripting and is prohibited by the browser.
@cometta:check what is the height of the website> I am sorry. NO.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.