I have developed four websites using HTML, CSS, and JavaScript without utilizing any server-side languages like PHP.
My main goal is to acquire backlinks with various anchor text. To achieve this, I have decided to use a single JavaScript file on all my websites that directs to the desired link.
The generated JavaScript code looks like this:
<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>
My question is: Will Google's crawler follow this link? And will it provide any SEO benefits?