Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript location href target _blank


        window.open('http://www.google.com', '_blank');
Comment

window.location.href target blank

<script type="text/javascript">
$("#site").on('click', function(){
    window.open("http://www.someone.com/","_blank");
});
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: js get first element by class 
Javascript :: sequelize order includes 
Javascript :: node print stdin 
Javascript :: how to use rgba in react native 
Javascript :: jquery sort select options by text 
Javascript :: javascript sleep thread 
Javascript :: random generating api for quotes 
Javascript :: js hex 
Javascript :: open a new tab when clicking on a link react 
Javascript :: TypeError: date.getHours is not a function 
Javascript :: get input value jquery 
Javascript :: dd.mm.yyyy pattern regex 
Javascript :: groupby javascript by instances 
Javascript :: regex to extract valid http or https 
Javascript :: javascript check if undefined or null 
Javascript :: remove unused dependencies in React Ask Question 
Javascript :: javascript check if value is not empty string 
Javascript :: javascript get date of last monday 
Javascript :: javascript play sound onclick 
Javascript :: javascript string to int 
Javascript :: mongodb create index unique 
Javascript :: aos react 
Javascript :: click a link using jquery 
Javascript :: Access-Control-Allow-Origin 
Javascript :: remove multiple values from array javascript 
Javascript :: loop through object and get a certain values 
Javascript :: put two buttons in a row in react native 
Javascript :: react native linking phone call 
Javascript :: ggg 
Javascript :: string to JSONobject android 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =