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
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>