Search code examples
javascripthtmlblackberrycordovablackberry-simulator

How to display the URL of the current document in Blackberry Phonegap, using Javascript?


How to display the URL of the current document in Blackberry Phonegap using Javascript? I tried to display the current document's url, but it shows nearly 1,000 lines of encrypted text. Please help me. Thanks in advance.


Solution

  • Have you tried alert(location.href)?