Jump to content

code for all browsers


noamway

Recommended Posts

Why this code:-------------------------------------function autofitIframe(id){//copyright 2004 Eddie Traversa http://www.dhtmlnirvana.com/if (!window.opera && !document.mimeType && document.all && document.getElementById){parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";}else if(document.getElementById) {parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"}}------------------------------------Doesn't work to some of my users?Does he not support some browsers?

Link to comment
Share on other sites

Could you ask your users what browsers they are using? I can see getElementById, which works in almost every browser. At least any of the ones that are pasts version .01 beta. :)

Link to comment
Share on other sites

I doubt they'll be getting an error message. Probably whats happening is the script just isnt being activated in certain browsers due to the tricky if statement at the top.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...