due to the my lack of knowledges in javascript, i m here to please you to explain me why this line of code is not working properly, as it should do.
Firstly let me explain what I am trying to do and after that i will let you see my code. So, I'm using this guy script to check if adblock is active or not. https://stackoverflow.com/a/24111206
I changed adblock variable with adblock = "http://www. example1. tld" and adblock = "http://www. example2. tld".
I need to write adblock variable within href attribute of the < a > html tag. But till now I didn't find out how. The line of code that is not working is the next one:
<script>document.write('<a href="<script> document.write(adblock)</script>"' + 'class="button-download popup">')</script>
Can somebody explain me what to do in this situation and why my code is not working properly?