In my web app,I use window.open(url) to open my url in new window
for example:
$(".img").click(function(e){
window.open("http://www.google.com");
});
and in my index.html head:
<meta id="viewport_meta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script type="text/javascript">
var viewport_meta = document.getElementById('viewport_meta');
var w = window.screen.availWidth;
var h = window.screen.availHeight;
console.log("viewport_meta w="+w+";h="+h);
viewport_meta.setAttribute('content', 'width=' + w + ', height=' + h + ',user-scalable=no');
</script>
but I have get error "Viewport target-densitydpi is not supported" every time click the img,
then my web app would crash with a dialog "xxx has closed unexpectedly",
but the url has been opened with browser successfully.