Scroll Attribute Example – HTML Syntax – Scroll Attribute Example

Premium .NET Training Video Tutorials


Other Premium Videos Tutorials


Scroll Attribute Example – HTML Syntax – Scroll Attribute Example

Purpose: – Illustrates the for the .

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

View Example In Browser

 HTML |  copy code |? 
01
02
< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
03
<html>
04
<head>
05
  <title>Scroll Example</title>
06
</head>
07
<body id="myBody">
08
<button onclick="myBody.scroll='yes'">Scroll
09
bars exist</button>
10
<button onclick="myBody.scroll='no'">Scroll
11
bars do not exist</button>
12
<button onclick="myBody.scroll='auto'">Scroll
13
= auto</button>
14
<br />
15
in internet explorer, the scroll attribute applied to the body
16
determines whether scrollbars exist on the page....................
17
<br />
18
<br />
19
</body>
20
</html>
21
 
22
 
23

Related posts:

  1. Face Attribute Example – HTML Syntax – Face Attribute Example Face Attribute - HTML Syntax - Example...
  2. Color Attribute Example – HTML Syntax – Color HTML Example Color Attribute Example - HTML Syntax - Color HTML Example...
  3. Bordercolor Attribute Example – HTML Syntax – Bordercolor HTML Example Bordercolor Attribute Example - HTML Syntax - Bordercolor HTML Example...
  4. Unselectable Attribute Example – HTML Syntax – Unselectable Example Unselectable Attribute Example - HTML Syntax - Unselectable Example...
  5. Disabled Attribute Example – HTML Syntax – Disabled HTML Example Disabled Attribute - HTML Syntax - Example...

Related posts brought to you by Yet Another Related Posts Plugin.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

This blog uses the cross-linker plugin developed by Web-Developers.Net