What's the resolution of the iphone browser?
I added some javascript that should only display the table of contents if the browser is wider than 790 pixels.
Can you tell me if this javascript works correctly in the iPhone browser:
function getWidth() { width = 0; if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { width = window.innerWidth; } else if (navigator.appName.indexOf("Microsoft")!=-1) { width = document.body.offsetWidth; } } return width; }
What's the resolution of the iphone browser?
I added some javascript that should only display the table of contents
if the browser is wider than 790 pixels.
Can you tell me if this javascript works correctly in the iPhone browser:
function getWidth() { navigator. appVersion) >3) { appName= ="Netscape" ) {
width = window.innerWidth; appName. indexOf( "Microsoft" )!=-1) {
width = document. body.offsetWidt h;
width = 0;
if (parseInt(
if (navigator.
} else if (navigator.
}
}
return width;
}