Answers for "how to location.href blank"

4

javascript location href target _blank

window.open('http://www.google.com', '_blank');
Posted by: Guest on May-07-2020
0

window.location.href target blank

<script type="text/javascript">
$("#site").on('click', function(){
    window.open("http://www.someone.com/","_blank");
});
</script>
Posted by: Guest on November-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language