On click of a button, i need to open a link(for example say https://angular.io/) in new tab and pass cookie with the url. i can open the link in new tab but how to pass the cookies. var cookie = "hello-world" onSubmit() { window. open( "https://angular.io", "_blank"); } Continue reading...