Found another solution to the problem. The HTML-document, insert the following code:
<script> function getUrlParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } </script> <style>*{margin:0;padding:0;}</style> <title>HTML5_Ad_Demo</title> </head> <body> <a id="click1_area" href="#" target="_blank" style="width: 240px; height: 400px; cursor: pointer; position: absolute; z-index: 9;"></a> <script> document.getElementById("click1_area").href = getUrlParam('link1'); </script> ] /, "\\ [") replace (/ [\]] /, "\\.]"); <script> function getUrlParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } </script> <style>*{margin:0;padding:0;}</style> <title>HTML5_Ad_Demo</title> </head> <body> <a id="click1_area" href="#" target="_blank" style="width: 240px; height: 400px; cursor: pointer; position: absolute; z-index: 9;"></a> <script> document.getElementById("click1_area").href = getUrlParam('link1'); </script> , "")); <script> function getUrlParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } </script> <style>*{margin:0;padding:0;}</style> <title>HTML5_Ad_Demo</title> </head> <body> <a id="click1_area" href="#" target="_blank" style="width: 240px; height: 400px; cursor: pointer; position: absolute; z-index: 9;"></a> <script> document.getElementById("click1_area").href = getUrlParam('link1'); </script> cursor: pointer; position: absolute; z-index: 9;"> </a> <script> function getUrlParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } </script> <style>*{margin:0;padding:0;}</style> <title>HTML5_Ad_Demo</title> </head> <body> <a id="click1_area" href="#" target="_blank" style="width: 240px; height: 400px; cursor: pointer; position: absolute; z-index: 9;"></a> <script> document.getElementById("click1_area").href = getUrlParam('link1'); </script> getUrlParam ( 'link1').; <script> function getUrlParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } </script> <style>*{margin:0;padding:0;}</style> <title>HTML5_Ad_Demo</title> </head> <body> <a id="click1_area" href="#" target="_blank" style="width: 240px; height: 400px; cursor: pointer; position: absolute; z-index: 9;"></a> <script> document.getElementById("click1_area").href = getUrlParam('link1'); </script>