vendredi 8 juillet 2016

How to get actual URL in javascript in UIWebView?

During a simple web html page load in browser, I want to do something with the actual URL. In javascript it is usually done via var url = window.location.href; but Mobile Safari ‪‎UIWebView‬ is giving me the URL value for window.location.href as applewebdata://A0E0D8E6-692C-41BA-B13D-970BCC145DC6.

Note: I am not an iOS developer. I just want actual URL in my web page javascript code.

Aucun commentaire:

Enregistrer un commentaire