<button type="button" class="button" onclick="redirect()">Go to</button>
</div>
<script>
function redirect() {
alert("You are now redirecting..");
window.location.href="You do not have permission to view the full content of this post.Log in or register now.", '_blank';
}
</script>