Marcel: document.getElementsByName neues Problem 2

Beitrag lesen

Sorry, hab mich vertipt.

Mein Code ...

<html>
<head>
<title>Wortklick</title>

<script type="text/javascript">
<!--
function mask(x) {
document.getElementsByName(x).style.text-decoration = "line-through";
}
function unmask(x) {
document.getElementsByName(x).style.text-decoration = "none";
}

var ww = "meintext";

//-->
</script>
</head>
<body>

<a href="#" name = "meintext" onClick="unmask(ww)" onDblClick="mask(ww)">Streich mich durch</a>

</body>
</html>

Bin aber immer noch nicht schlauer geworden, möchte nicht schreinen, hab irgendwie ne denkblockarde.

Gruß
Marcel