0

I like to open a new window (not in the same window) in AngularJs with window.open on rollover (without click event) and it gets blocked by popup blocker in Google Chrome. Is there a workaround for this?

Because user needs to do only Click action.He doesn't wants to modify browser settings.

Please help me with this.....

Srinivasan
  • 31
  • 1
  • 3
  • Popup blocker will not block your popup if you fire `window.open` on a user action (like click or dblclick) – mehulmpt Mar 04 '17 at 07:02
  • http://stackoverflow.com/questions/20099784/open-links-in-new-window-using-angularjs Might be your answer – DsRaj Mar 04 '17 at 07:25
  • if (downloadDoc != undefined) { if (downloadDoc.indexOf("data:image/jpeg;base64,") > -1 || downloadDoc.indexOf("data:image/png;base64,") > -1) { //window.open(downloadDoc); PrintImage(downloadDoc); } else if (downloadDoc.indexOf("data:application/pdf;base64,") > -1) { window.open(downloadDoc); } } – Srinivasan Mar 04 '17 at 10:36
  • I am trying this but Pop up is blocking .Can someone kindly help.Am new to this . – Srinivasan Mar 04 '17 at 10:36

0 Answers0