I have encountered an issue while trying to create an anchor tag in a TypeScript file. When clicking on this button, the anchor tag should be created. This functionality is working correctly in Chrome and IE, however, it seems to be not working in Firefox.
btnGuest(){
var redirect = <HTMLAnchorElement>document.createElement("a");
redirect.href = 'https://www.google.co.in/';
redirect.target = '_blank';
redirect.click();
}
<button (click)="btnGuest()"></button>