+ 3
Js
can I create an js code and get href ?
3 Antworten
+ 5
See it's Please ↓↓↓ :)
<html>
<head>
</head>
<body>
<script>
var a = document.createElement('a'); var linkText = document.createTextNode("my title text"); a.appendChild(linkText); a.title = "my title text";
a.href = "http://example.com"; document.body.appendChild(a);
</script>
</body>
</html>
+ 3
Hope you are looking for something like this
use - var href = window.location.href :)
+ 2
all right