| Depr. | Version |
|---|---|
| Yes | N/A |
Syntax
Description
The
name attribute is one method for referencing an
embed element by JavaScript (the alternative,
forward-thinking method is to reference by the id (coming soon!)
attribute). It has historically been used for techniques such as image
swaps for rollovers (which have since largely been replaced using CSS
techniques).
Example
Thename
attribute provides a way of referencing the object: <embed src="giant-grasshopper.jpg" name="ghopper"></embed>
Value
Any name that the developer chooses (not containing spaces or special characters).
Compatibility
It causes no compatibility issues, and has excellent support across all tested browsers.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.