Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

open link in a new tab progmatically

<a class="link">Link</a>
<script  type="text/javascript">
     $("a.link").on("click",function(){
         window.open('www.yourdomain.com','_blank');
     });
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: get the key of largest json array value 
Javascript :: set to array casting js 
Javascript :: ipcrenderer preload.js 
Javascript :: valueof js 
Javascript :: foreach loop 
Javascript :: javascript this inside function 
Javascript :: loading screen html css js 
Javascript :: document.cookie 
Javascript :: The data option must be a function. Plain object usage is no longer supported. vue 
Javascript :: Function.prototype.bind polyfill 
Javascript :: jquery rename id 
Javascript :: regular expression to validate m/d/yyyy HH:MM:SS AM 
Javascript :: js display property 
Javascript :: javascript target closest class 
Javascript :: array prototype find javascript 
Javascript :: reset regex javascript 
Javascript :: confirm closing tab 
Javascript :: mongoose sort 
Javascript :: Get async: false 
Javascript :: EXPRESS APP REGISTER HANDLEBARS VIEW ENGINE 
Javascript :: write buffer to file in node 
Javascript :: react js calendar 
Javascript :: loop through elements by name js 
Javascript :: remove unused css and js wordpress 
Javascript :: like php date("Y-m-d",$value) in javascript 
Javascript :: React Redux reducer crud 
Javascript :: javascript math 
Javascript :: Kendo grid Excel export with filter 
Javascript :: javascript getHours from epoch 
Javascript :: creating room in ws nodejs 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =