0

I use

navigator.app.loadUrl(URL,{openExternal: true})

to open a new window an will close it if my fallback fires.

i tried var ref = navigator.app.loadUrl(URL,{openExternal: true})

and in my fallback

ref.close()

without any success.

Thank you for any suggestion.

Shao Khan
  • 441
  • 6
  • 31

1 Answers1

0

Try this:

to open the new window with url

window.open(URL-LINK,'_blank'); 

to close window

Or this pretty simple:

 window.open('','_self').close();
Community
  • 1
  • 1
Mohsin
  • 1,586
  • 1
  • 22
  • 44