"Open in new tab" click link does not open href value


99 encoder

I am using Vue2 and I have and <a>markup . This works as expected with a left click (it's calling a method), but if I do a , which is the open value in this case, it 's wrong.href='#'@click.prevent="someMethod()"
right click -> open in new tabhref

What method do you recommend to also call a @click.prevent="someMethod()"when it is opened on a non-left click ?

99 encoder

I've added anchor links with @click.prevent + :href='sameMethodAsInClickEvent()'so now, if it's not a left click, it calls hrefand still opens the correct link/method.

Related


Selenium - click on the link to open a new tab

tree 55 I've seen a lot of threads on how to open a link in a new tab, but what if you have a link that creates a new tab and you need to verify the title? All I need to do is click the link -> confirm the new tab has the correct title -> close the tab and con

Selenium - click on the link to open a new tab

tree 55 I've seen a lot of threads on how to open a link in a new tab, but what if you have a link that creates a new tab and you need to verify the title? All I need to do is click the link -> confirm the new tab has the correct title -> close the tab and con

Selenium - click on the link to open a new tab

tree 55 I've seen a lot of threads on how to open a link in a new tab, but what if you have a link that creates a new tab and you need to verify the title? All I need to do is click the link -> confirm the new tab has the correct title -> close the tab and con

Right click and save link to open in new tab

Dishu I added a custom right click menu using jquery in my project, now what I want to achieve is: -> If anyone right clicks on the link, the option will say "Open link in new tab", when that option is selected, it will open in a new tab with that link. -> Oth

Selenium - click on the link to open a new tab

tree 55 I've seen a lot of threads on how to open a link in a new tab, but what if you have a link that creates a new tab and need to validate the title? All I need to do is click the link -> confirm the new tab has the correct title -> close the tab and conti

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done, my links stop responding to left clicks. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the browse

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done my links stop responding to left clicks too. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the bro

Left click on link doesn't work, but "open in new tab" works

rock degree I'm working on my personal website (built from a template) and when I'm done my links stop responding to left clicks too. They work fine if you right click and select "Open in New Tab". You can see the URL in the status bar at the bottom of the bro

CakePHP open to new tab on click

mark I have a function in my app where user can upload files to web server. These uploaded files will then appear in another page where another type of user can click the link. After clicking the link, a new tab will open and the file will be displayed. But I

Click the button to open a new tab

Nathan Wilson I want to create a link with a button that opens in a new tab. The code I'm currently using is currently opening a blank tab and I'm not sure why. <div class="text text-left"> <h2>WORK</h2> <h1>Title</h1> <p>Lorem ipsum dolor sit am

Click the button to open a new tab

Nathan Wilson I want to create a link with a button that opens in a new tab. The code I'm currently using is currently opening a blank tab and I'm not sure why. <div class="text text-left"> <h2>WORK</h2> <h1>Title</h1> <p>Lorem ipsum dolor sit am

CakePHP open to new tab on click

mark I have a function in my app where user can upload files to web server. These uploaded files will then appear in another page where another type of user can click the link. After clicking the link, a new tab will open and the file will be displayed. But I

Form does not open in new tab

Stoffel Here is the code I am using, I have specified target="_blank" in the form, but it is not opening in new tab. <script> function process() { var url="https://website.com/search/" + document.getElementById("url").value; location.href=url; return false; }

Form does not open in new tab

Stoffel Here is the code I am using, I have specified target="_blank" in the form, but it is not opening in new tab. <script> function process() { var url="https://website.com/search/" + document.getElementById("url").value; location.href=url; return false; }

How to open new tab with data-href

Iggy's popularity I'm making the table row clickable, but once clicked, I want to open a new tab. I tried to use data-targetbut it didn't work . <tr class="table-row" data-href="mypage.php" data-target="_blank"></tr> <script type="text/javascript"> $(docu

How to open new tab with data-href

Iggy's popularity I'm making the table row clickable, but once clicked, I want to open a new tab. I tried to use data-targetbut it didn't work . <tr class="table-row" data-href="mypage.php" data-target="_blank"></tr> <script type="text/javascript"> $(docu

How to open new tab with data-href

Iggy's popularity I'm making the table row clickable, but once clicked, I want to open a new tab. I tried to use data-targetbut it didn't work . <tr class="table-row" data-href="mypage.php" data-target="_blank"></tr> <script type="text/javascript"> $(docu

Open a new tab when the link button is clicked

username I am using the code below to generate a button with a link. But the problem is that it opens in the same tab. I want it to open in a new tab. Can someone suggest me a method that works on most browsers. <form> <input TYPE="button" VALUE="Home Page"

Open a new tab (window) by clicking a link in jquery

k I have a web application that displays rows with goand deletebuttons . If the user clicks go, it should open a new tab/window with a url built from the row data. How to do this in jquery? What I am doing is: $('.go').click( function () { var wid = {{ wid|

The link doesn't open in a new tab

Alan Weber Here is my javascript code, I want the link should open in new tab but it doesn't happen, how can I do that? <link href="http://vjs.zencdn.net/5.4.6/video-js.min.css" rel="stylesheet"> <script src="http://vjs.zencdn.net/5.4.6/video.min.js"></script>

How to open new tab with link button?

Ohmi I use a linkbuttonin the gridviewcontrol . I want to open the data into a new tab target="_blank". I try to set . But it doesn't work. I try to do this. Here is my source code: <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="<

Open a new tab when the link button is clicked

username I am using the code below to generate a button with a link. But the problem is that it opens in the same tab. I want it to open in a new tab. Can someone suggest me a method that works on most browsers. <form> <input TYPE="button" VALUE="Home Page"

Open a new tab (window) by clicking a link in jquery

k I have a web application that displays rows with goand deletebuttons . If the user clicks go, it should open a new tab/window with a url built from the row data. How to do this in jquery? What I am doing is: $('.go').click( function () { var wid = {{ wid|

Open a new tab after button click in AngularJS

Neptune: <button type="button" class="btn btn-primary" ng-click="openTab()">new tab</button> openTab = function () { $http.post('www.google.com'); } What I want is to post a requirement and then open the response html in a new tab when the "openTab" button

Click on filename to open in new tab with Sublime

Budge Usually in my personal readme.txt file/log file I have some references to other .txt files. It can be a relative path ( ..\notes\blah.txt) or an absolute path (as shown in the screenshot below). Is it possible for a .txt file to have this behavior in Sub

Open a new tab after button click in AngularJS

Neptune: <button type="button" class="btn btn-primary" ng-click="openTab()">new tab</button> openTab = function () { $http.post('www.google.com'); } What I want is to post a requirement and then open the response html in a new tab when the "openTab" button