How to open in new tab or window using Javascript

To Use the window.open method with _blank parameter to open the browser in new tab or window.

 

Example:

window.open(
  'http://theblogreaders.com/',
  '_blank' // <- This _blank is used to open as new tab or window
);

Written by 

Salesforce MVP | Lightning Champion | 16x Salesforce Certified | Application Architect | 6x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *

*