android - Custom Javascript for existing Websites -



android - Custom Javascript for existing Websites -

i create android application views existing web url, however, button controls on android app able run custom javascript code on website's context.

any ideas on how create happen? perhaps extend or create custon webview?? ideas?

thanks

in browsers in general can execute arbitrary javascript via url bar injection (also called bookmarklet if saved in bookmarks).

// first load normal page, webview.loadurl("javascript: var x = 1; ");

you can test pasting in desktop browser url bar window.alert("hello").

javascript android android-webview

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -