Open in new tab after ajax response in javascript is not working,
tried with _newtab and _blank
But none of them is working,
I say,
Is there any solution to get the answer ?
From JavaScript, you cannot open new tabs. You can only open new windows. It's up to the user's browser settings how it opens new windows (be it in a new tab, a new tab in the background, or a new window).
JavaScript does not and cannot even know if your browser supports tab. And it does not have access to anything on the outsides of the browser (unless there's leverage from an extension I suppose).
And as a reminder, there are browsers with no tabs, and others with no windows even. Tabs are just browser features, and never part of any language specification.
Use this -> window.open(YourUrlInsertHere, '_blank');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With