⬅︎ Back to createElement('a') with a javascript href
<!DOCTYPE html><html><body><script>var txt="Chapter 10";txt.anchor("chap10");var l=txt.anchor.id;l="1";alert(l);</script></body></html>
Comment
<!DOCTYPE html>
<html>
<body>
<script>
var txt="Chapter 10";
txt.anchor("chap10");
var l=txt.anchor.id;
l="1";
alert(l);
</script>
</body>
</html>