I am using JavaScript application to run on android device .
inside the JavaScript i have window.open(xx.txt)
. I can open the file on the android device. but always the width and height is at maximum.
In desktop it shows a "close" button. but when i run on android device (tablet) it doesn’t show the close button. I have to rely on the back key button.
I specified height and width explicitly, but still no effect.
Let me know if am missing something here. I wish to know how we can use window.open function to open a file on android tablet/mobile. It need to show the close button for user to close the file and come back to the html page.
code snippet : html page :
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="target-densitydpi=device-dpi" />
<meta name="viewport" content="width=device-width" />
<meta name="viewport" content="initial-scale=1.0" />
<meta name="viewport" content="minimum-scale=1.0" />
<meta name="viewport" content="maximum-scale=1.0" />
<meta name="viewport" content="user-scalable=0" />
on displaying the html page. it fecthes a log-error.txt (text file) from the local directory on android SD card.
inside my javascript page
new_myText.innerHTML="Me: <a href='#' onclick=displayWindow('"+imagePath+"')>"+imagePath+"</a>";
function displayWindow(imagePath)
{
alert(imagePath);
var windowSize = "width= 100 ,height= 100 ,scrollbars='yes'";
window.open(imagePath,'popup', windowSize);
}