Following is my code , where I am reloading the page on click of modal button . it working on PC , But not on Ipad.
$(".yes_continue").off('click').click(function () {
$("#data_variation_step1").modal("hide");
sessionStorage.setItem("continue", 'yes');
window.location.reload(true);
//alert('AUEEE')
});
Tried these too
setTimeout(function(){document.location.href = $(location).attr('href')},500);
window.location.reload();
location.reload();
$(".yes_continue").bind("click touchstart",function () {
$(".yes_continue").on("click touchstart tap touch",function () {
$(document).on("click touchstart tap", ".yes_continue", function () {
what may be the solution
Note : The modal hides , that means the click works but not the reload code ,and it does not alert too.. But alerts on PC
UPDATE: Problem is with
sessionStorage.setItem("continue", 'yes');
- If I use private browsing on Ipad chrome. It does not reload. But if I remoe sessionStorage code then reload works.
- If I use non-private browsing the reload works even if I have sessionStorage code.But it does not set any value in session. So my question is now somewhat got twisted. I dont know how to store value for Ipad, Tried with localStorage too