VueJs Tutorials
- VueJs
- VueJs Instance
- Templates
- Component
- Computed Properties
- Watch Property
- Binding
- Events
- Rendering
- Directives
- Mixins
- Reactive Interface
- String Length
- Onchange Events
- Ternery Operator
- Global variable
- Get data attribute value
- String to array
- How to Get Array Length
- call a function on Page load
- current Date and Time
- Replace String
- Open link on new tab
- setTimeout in Vue JS
- object or array empty or not
- get element by id
- Laravel Vue Flash Message
How to Open link in new tab?
File name : index.php
<!DOCTYPE html>
<html>
<head>
<title>How to Open link in new tab Example?</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.5/vue.min.js"></script>
</head>
<body>
<div id="appid">
<button @click="myFunction()">Click Here...</button>
</div>
<script type="text/javascript">
new Vue({
el: '#appid',
data: {
myModel:false
},
methods:{
myFunction: function () {
window.open("https://itechxpert.in", "_blank");
}
}
});
</script>
</body>
</html>
File name : index.php
File name : index.php
File name : index.php