I have a HTML code with the java Script given below.
<!DOCTYPE html>
<html>
<body style = "text-align:center">
<script>
var out = '';
for (var counter = 1; counter <= 10; counter++)
{
out += '<img src="http://shiaislamicbooks.com/books_snaps/UR335/'+counter+'.jpg"alt="Page No:'+counter+'" height="100%" width="100%" />';
}
document.write(out);
</script>
</body>
</html>
I just want to load this in my android's webview using the loadDataWithBaseURL(null, htmlString ,"text/html", "UTF-8", null); method
- In short all I need is that how can I convert the above HTML code(Having a java Script Loop) in the htmlString so that I can insert that in
loadDataWithBaseURL(null, htmlString ,"text/html", "UTF-8", null);method flexibly
Thanks