document.defaultCharset
In this chapter you will learn:
Default character set
document.defaultCharset
gets the default character encoding.
The return type is string
.
<!DOCTYPE HTML> <!-- j a va 2 s . c om-->
<html>
<body>
<script>
document.writeln(document.defaultCharset);
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Document