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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -