JavaScript Reference/Javascript Properties/title stylesheet
Версия от 18:30, 25 мая 2010; (обсуждение)
"title" Example
<html>
<body>
<style id="yourStyleSheet">
.body { font-family:verdana; color:blue }
</style>
<script language="JavaScript">
document.getElementById("yourStyleSheet").title = "This is my internal style sheet";
alert(document.styleSheets[0].title);
</script>
</body>
</html>
"title" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |stylesheet |
+----------------+--------------------------------------------------------------+
"title" Syntax and Note
Note:
Read and write property.
Specifies the style sheet title.
Syntax:
document.styleSheets[index].title
document.all.styleID.title