Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling height of IFrame
Message
De
20/11/2012 22:29:08
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
IFrame
Titre:
Scrolling height of IFrame
Divers
Thread ID:
01557719
Message ID:
01557719
Vues:
50
I thought this code was universal but apparently it is not. I am trying to get the scroll height of a frame and Firefox and Chrome return a value of 0 instead of 880 that IE is returning.
      loIFrame=document.getElementById('IFrameMenu')
      loIFrameDocument=loIFrame.contentDocument || (loIFrame.contentWindow && loIFrame.contentWindow.document)
      alert(loIFrameDocument.body.scrollHeight)
Anyone would know what would need to be adjusted?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform