I'm having some issues with my javascript link
I have a hidden input fields with the name "domein"
I'm having the following div with a onclick script
<div id="button" onclick="window.open('http://www.mylink.nl/?domein=' + document.getElementById('domein').value ,'_blank') ">
<strong>button text</strong>
</div>
The link does not open in a new tab neither does it shows the values from the 'domein' value from the hidden field in the url.
Can you guys please help me out?
My second question: How can I let the url be only http://www.mylink.nl when 'domein' value = empty.