Change element textDecoration : textDecoration : Style JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Style » textDecoration »

 

Change element textDecoration

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
function addunderline()
{
    head1.style.textDecoration = "underline"
}

function removeunderline()
{
    head1.style.textDecoration = "none"
}

function addoverline()
{
    head1.style.textDecoration = "overline"
}
//  -->
</script>
</head>
<body>
<h1 id="head1" onMouseover="addunderline()" onMouseout="removeunderline()"
onClick="addoverline()">Welcome to this page!</h1>
<P>A lot of interesting text goes here!</p>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Style
» textDecoration