Open In App

HTML | <frame> scrolling Attribute

Last Updated : 28 Jun, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

The HTML <frame> scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element. Basically, the scrollbar is used when the content is larger than the Iframe Element.
Syntax: 
 

<frame scrolling="auto|yes|no">


Attribute Values: 
 

  • auto: It has the default value. The scrollbar appears when needed.
  • yes: This value shows the scrollbar in the iframe element.
  • no: This value does not show the scrollbar in the iframe element.


Note: The <frame> tag is not supported by HTML 5.
Example: 
 

html
<!DOCTYPE html> 
<html> 

<head> 
    <title>
        HTML frame scrolling Attribute
    </title> 
</head> 

<frameset cols="30%, 40%, 30%"> 
    
    <frame name = "left" src =
"https://media.geeksforgeeks.org/wp-content/uploads/20190328185307/gfg28.png"
            scrolling="auto" /> 
    
    <frame name="middle" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190328185307/gfg28.png"
            scrolling="yes" /> 
    
    <frame name="right" src=
"https://media.geeksforgeeks.org/wp-content/uploads/20190328185307/gfg28.png"
        scrolling="no" /> 

</frameset> 

</html>   

Output: 
 


Supported Browsers: The browsers supported by HTML <frame> scrolling attribute are listed below: 

  • Internet Explorer (before IE 9)
  • Firefox
  • Opera (upto 12.0)
     

Next Article

Similar Reads