Scroll Attribute Example – HTML Syntax – Scroll Attribute Example
3-Minute Video Tour of LearnVisualStudio.NET by Bob Tabor
Premium (Not Free) Video Tutorials
Free Video Tutorials & Free Tools
Scroll Attribute Example – HTML Syntax – Scroll Attribute Example
Purpose: – Illustrates the HTML syntax for the scroll attribute.
You can download an excellent free html editor at nvu. This HTML editor will allow you to easily experiment with these examples. You can view an 8-minute video tutorial that I did at NVU HTML Editor
Function: scroll="yes|no|auto" In internet explorer, the scroll attribute applied to the body determines whether scrollbars exist on the page
Restrictions: Does not work in Firefox
| HTML | | | | ? |
< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
<html> |
<head> |
<title>Scroll Example</title> |
</head> |
<body id="myBody"> |
<button onclick="myBody.scroll='yes'">Scroll |
bars exist</button> |
<button onclick="myBody.scroll='no'">Scroll |
bars do not exist</button> |
<button onclick="myBody.scroll='auto'">Scroll |
= auto</button> |
<br /> |
in internet explorer, the scroll attribute applied to the body |
determines whether scrollbars exist on the page.................... |
<br /> |
<br /> |
</body> |
</html> |
Related posts:
- Face Attribute Example – HTML Syntax – Face Attribute Example Face Attribute - HTML Syntax - Example...
- Color Attribute Example – HTML Syntax – Color HTML Example Color Attribute Example - HTML Syntax - Color HTML Example...
- Bordercolor Attribute Example – HTML Syntax – Bordercolor HTML Example Bordercolor Attribute Example - HTML Syntax - Bordercolor HTML Example...
- Disabled Attribute Example – HTML Syntax – Disabled HTML Example Disabled Attribute - HTML Syntax - Example...
- Link Attribute Example- HTML Syntax – Link HTML Example Link Attribute Example- HTML Syntax - Link HTML Example...
Related posts brought to you by Yet Another Related Posts Plugin.
