The problem of javascript implement in browser

Put your problem here if it does not fit any of the other categories.

The problem of javascript implement in browser

Postby cs_david » Wed Nov 26, 2008 11:02 am

Hi ,I wrote a program about browser implement javascript
The code is follow:
WebView w = (WebView) findViewById(;
String strHtml;
strHtml = "<HTML><HEAD><TITLE>Model</TITLE></HEAD><BODY><form name=form1 action=''/>Result:<input name=showcont value='Result'/><script language=JavaScript type=text/JavaScript>" + "\r\n" + "<!--" + "\r\n" + "document.form1.showcont.value='Result is pass';" + "\r\n" + "-->" + "\r\n" + "</script></form></BODY></HTML>";

w.loadData(strHtml, "text/html","utf-8" );

I just want implement a piece of javascript code in html page, the Html has shown well but the javascript donot work ,why? please help me ,thanks a lot!
Once Poster
Once Poster
Posts: 1
Joined: Wed Nov 26, 2008 10:49 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 22 guests