very simple javascript but has error

1 replies
  • WEB DESIGN
  • |
I wrote this to remove the text underline from a link.
I know normally it's easier with css but I can't do that here-long story.
HTML Code:
<body><a onmouseover="this.text-decoration='none'" href="#"
 target="_top">dog</a>
</body>
For some reason it doesn't work.
#error #javascript #simple
  • Profile picture of the author nesterdwarf
    This should work -

    Code:
    <body><a onmouseover="this.style.textDecoration='none'" href="#"
     target="_top">dog</a>
    </body>
    {{ DiscussionBoard.errors[7518756].message }}

Trending Topics