[/code] How is it possible to check whether a click on this link actually opens the link in a new browser window or not?"> [/code] How is it possible to check whether a click on this link actually opens the link in a new browser window or not?"> [/code] How is it possible to check whether a click on this link actually opens the link in a new browser window or not?">
There is an Android app which uses HTML content within a WebView. Now, this HTML content contains a target=_blank link. Sometimes it works, but sometimes it gets blocked (i.e. link opens in same window), for unknown reasons.
[code]<!-- Does not always work in WebView --> <a id="link" href="http://example.com" target="_blank">link</a> $('#link').click(function() { // if (linkOpenedInNewBrowserWindow.wasSuccessful) // Do something });[/code] How is it possible to check whether a click on this link actually opens the link in a new browser window or not?


JLCPCB – Prototype 10 PCBs for $2 (For Any Color)

China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w

Syed Zain Nasir

I am Syed Zain Nasir, the founder of <a href=https://www.TheEngineeringProjects.com/>The Engineering Projects</a> (TEP). I am a programmer since 2009 before that I just search things, make small projects and now I am sharing my knowledge through this platform.I also work as a freelancer and did many projects related to programming and electrical circuitry. <a href=https://plus.google.com/+SyedZainNasir/>My Google Profile+</a>

Share
Published by
Syed Zain Nasir