Hey everyone!
I’m very, very new to javascript. Here is my script in html:
<script language=javascript>
<!–
var mylink = “contact.htm”
var linkname = “CONTACT US”
document.write(“<a href=” + mylink + “>”)
document.write(linkname + “</a>”)
this.style.textDecoration=’none’;
//–>
</script>
I know you are all saying use CSS but I need to make this specific link spam safe. My problem is that I don’t want the link to be underlined. The last line of the code doesn’t work at all. Can anyone please help me??? This has to be in javascript, though. I have other links that need to be underlined so changing the html properties won’t work.
Thanks,
Karen