Jump to content

Frame Scrolling Property not working


wardemon
 Share

Recommended Posts

Hi All, I've tried the example for enabling and disabling the Scrolling property of the frame tag at the following w3schools example site:http://www.w3schools.com/htmldom/prop_frame_scrolling.asp However it does not work. It seems as though the Scrolling property of the frame tag is not settable on demand? My excersie of the example (that does not work) is as follows: right frame's scrollbar simply wont disappear.Thanks,Henry :)frame_index.html====<html> <frameset cols="50%,50%"> <frame id="leftFrame" src="frame_scroll.htm"> <frame id="rightFrame" src="frame_a.htm"> </frameset></html> frame_scroll.htm====<html><head><script type="text/javascript">function enableScrolling() { parent.document.getElementById("leftFrame").scrolling="yes" parent.document.getElementById("rightFrame").scrolling="yes" }function disableScrolling() { parent.document.getElementById("leftFrame").scrolling="no" parent.document.getElementById("rightFrame").scrolling="no" }</script></head><body><input type="button" onclick="enableScrolling()" value="Scroll bars" /><input type="button" onclick="disableScrolling()" value="No scroll bars" /></body></html>frame_a.htm====<html><head></head><body>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br>Some Text Here <br></body></html>

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
 Share

×
×
  • Create New...