function isMobile() { var index = navigator.appVersion.indexOf("Mobile"); return (index > -1); } function setStyleMobile() { document.write("<style>body { font-size: 3em; } </style>"); } function makeFontTripleSize() { document.write("<style>body { font-size: 5em; } </style>"); } if (isMobile()) { setStyleMobile(); document.write("Mobile browser"); } else { makeFontTripleSize(); document.write("Regular browser"); }
window.location
window.location.assign('http://www.abc.com')
window.location = 'http://www.abc.com'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)