redirect page on mobile screen size javascript
<script type="text/javascript">
function redirect() {
if (screen.width <= 950) {
window.location = "https://www.google.com/";
}
3.67
9
function redirect() {
if (screen.width <= 950) {
window.location = "https://www.google.com/";
}
Thank you!
9
0
4.17
6
<script type="text/javascript">
$(window).on('load resize',function(){
if($(window).width() < 950){
window.location = "https://www.google.com"
}
});
</script>
Thank you!
6
0
Are there any code examples left?
New code examples in category Javascript