Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / December 2004

Tip: Looking for answers? Try searching our database.

alt property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
arian - 01 Dec 2004 15:03 GMT
hi, somebody know what can i do to show the "alt" property from the tag <img>
using javascript? thanks for your help
Simone Massaro - 02 Dec 2004 16:11 GMT
The alt property is used to display a tooltip in the web borwser. If you set
the property to a string value it will automatically be displayed when the
mouse is over the image.
Steve Fulton - 03 Dec 2004 14:01 GMT
> The alt property is used to display a tooltip in the web borwser.

No, it's to supply textual content to be used in the case that the
image isn't displayed -- it's unavailable, the client has disabled
images, the client isn't a graphical browser, etc.[1]

> If you set the property to a string value it will automatically be
> displayed when the mouse is over the image.

Only in the operating-system-component-masquerading-as-a-browser.
Graphical browsers which do support tooltips use the title attribute.[2]

---
[1] 13.8 How to specify alternate text; HTML 4.01 Specification;
W3C Recommendation; 24 December 1999;
http://www.w3.org/TR/html401/struct/objects.html#h-13.8

[2] 7.4.3 The title attribute; ibid.;
http://www.w3.org/TR/html401/struct/global.html#h-7.4.3

Signature

Steve

A foolish consistency is the hobgoblin of little minds.
-Ralph Waldo Emerson


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.