javascript - How to dynamically change meta tag viewport after page load in windows phonegap application? -
javascript - How to dynamically change meta tag viewport after page load in windows phonegap application? -
i want dynamically alter meta tag viewport in "index.html" in windows phonegap app on button click.
i using
windows os 8 phonegap 3.5 device nokia lumia 1320 windows 8 osi want alter below meta tag
<meta id="viewport" name="viewport" content="width=device-width">
to
<meta id="viewport" name="viewport" content="width=720">
i have tried below urls nil worked windows phone.
how set viewport 380x800 or 800x380 depending on orientation?
setting viewport scale fit both width , height
here found link says not possible alter meta tag dynamically in winodws 8 os
http://www.quirksmode.org/blog/archives/2011/06/dynamically_cha.html
try observe device/os , alter meta tag accordingly http://www.sitepoint.com/detect-mobile-devices-jquery/
javascript css html5 cordova windows-phone-8
Comments
Post a Comment