Looking for assistance with styling a link. I've connected an external stylesheet to my HTML file, so that part is all set. The goal is to modify the text-decoration when the onclick event occurs. Here's what I currently have:
<a class="dopelink" onclick="document.getElementsByTagName("link").style.textDecoration = "underline"" href="mylink.htm">MY Link</a>
Any insights on where I may be going astray?