Skip to content
Loading
  • Puneet Kankar
    +1
    Check below link  
     
     
    https://stackblitz.com/edit/angular-quur72?file=src%2Fapp%2Fapp.component.ts 
     
    1.  myfunc()  
    2.   {  
    3.     alert('bfdhfd');  
    4.     var url = 'https://www.google.com/?hl=hi';  
    5.      window.open(url);  
    6.   }  
    7.   
    8.   
    9. "myfunc()">click  
     
    +1
  • Muthu Kumar
    +1
    Hi Shankar,

    Please check the following link,

    http://jasonwatmore.com/post/2018/05/25/angular-6-custom-modal-window-dialog-box
    +1
  • Dhanik Sahni
    +1
    Please check https://stackoverflow.com/questions/3662531/window-open-not-working-in-ie
    +1
  • Gajendra Jangid
    +1
    try this code :
     
    put this functin on component.ts 
    1.    
    2. func()  
    3.   {  
    4.      window.open('https://www.google.com");  
    5.   }  
     write this code in html:
    1. "func()">click    
    +1
  • Manoj Bhoir
    +1
    Hi,
     
    Try this one
     
    window.open(address,'windowname', config=center);  
    +1