Jump to content

Disable scrolling in an iframe


GalRatz

Recommended Posts

Hi everyoneI have a very annoying problem - I use an iframe to display some content from another website, I have set the iframe height to be the same height of the inner content - but still, scrolling is available. I don't mean the scrollbars - those are disabled using the scrolling="no" property, what I mean is that the user can click and drag the mouse to scroll the iframe content, and this I want to disable. Is that possible at all? Since the iframe height and the inner content appear to be at the same height, I'm not really sure why it happens. Maybe there is a white area beneath the content, I know that if I add 20 pixels or so to the iframe height then scrolling is disabled, but then I get an ugly white gap between this iframe content and whatever it is under it.I would appreciate any help, please note that the solution must be from my side (the outer iframe) as I don't have access to change the inner content source code.Thank you,Gal

Link to comment
Share on other sites

what I mean is that the user can click and drag the mouse to scroll the iframe content, and this I want to disable. Is that possible at all?

Hi Gal, try this script from dynamic drive: http://www.dynamicdrive.com/dynamicindex9/noselect.htmIt stops the text from being able to selectI'm not sure how it will react with an iframe but it's worth a shot :)
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...