DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


tips_tricks:webview_navigate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tips_tricks:webview_navigate [2015/03/03 16:11] (current)
octazid created
Line 1: Line 1:
 +===== How to navigate in a WebView? ===== 
 +<code javascript>​ 
 +//Called when the back key is pressed. ​  
 +function OnBack() 
 +
 +    if(web.CanGoBack()) 
 +    { 
 +        web.Back();​ 
 +    }else 
 +    { 
 +        app.Alert("​Can'​t go back"​);​ 
 +    } 
 +}  
 +</​code>​
tips_tricks/webview_navigate.txt · Last modified: 2015/03/03 16:11 by octazid