javascript - can I disable the form reload and the default behaviour of while window reload? -


i trying assign values while orientation change event, values set while window reloaded. tried below code.

$(window).on("orientationchange",function(ev){     window.location.reload(true); }); 

so while each time reloading window while orientation changes, need prevent default behaviour of browser while reloading page, user doesn't need understand window reloading if events occurs. ajax calls.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -