Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
How can i right click and open in new tab

i want to open my link data in right click and open that for now i am doing window.location = "/MMPDataQuality/ViewMMPReferenceData?validator_id=" + id; [1]: https://i.stack.imgur.com/fEmaB.png

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can use below snippet.

window.open(url, '_blank').focus();

Sample html page

<html>
<body>
<a onClick="javascript:openInTab('https://facebook.com')" href="" target>facebook</a>
<script>
function openInTab(url){
window.open(url, '_blank').focus();
}
</script>
</body>
</html>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!