Anchor charset Property
Anchor Object
Definition and Usage
The charset property sets or returns the value of the charset attribute of a
link.
The charset attribute specifies the character-set of the linked document (the
document referenced in the href attribute).
Syntax
| anchorObject.charset=charset |
Browser Support

The charset property is supported in all major browsers.
Example
Example
Return the value of the charset attribute of a specific link:
<html>
<body>
<p><a id="w3s" charset="ISO-8859-1"
href="http://www.w3schools.com">W3Schools.com</a></p>
<script type="text/javascript">
document.write(document.getElementById("w3s").charset);
</script>
</body>
</html>
|
The output of the code above will be:
Try it yourself »
|
Anchor Object
Create a free Flash website with our simple, online web design editing platform. Stunning templates
and user-friendly tools make website building easy and fun.
Start Creating your free website now!

Need an easy way to get data into XML, or transform XML to another format?
MapForce lets you map XML data to/from any combination of XML, database, flat file,
Excel 2007, XBRL, or Web services data. Then it transforms data instantly or
auto-generates royalty-free code for recurrent conversions.
New features in Version 2010!
- Easy-to-use, graphical data mapping interface
- Instant data transformation
- XSLT 1.0/2.0 and XQuery code generation
- Java, C#, and C++ code generation
- Advanced data processing functions
- Support for all major relational databases including SQL Server, IBM DB2, Oracle, and more
- Visual Studio & Eclipse integration
- Available in 32-bit and 64-bit versions
Download a fully-functional trial today!
|
|
|
|