Hi, i'm trying to make a block with this code:
<input name="msg" type="text" /><button>DALE AL CLICK</button>
<script>
document.querySelector('button').addEventListener('click', function() {
var msg = document.querySelector('input[name=msg]').value.replace(/ /g, '+');
location.href = 'http://www.misitio.com/index.php?action=profile;u=' + msg;
});
</script>
The only I need, is OPEN the url in a new tab, is this possible ?