I've tried looking around for an answer to this and tried many variations of window.location.reload
although to no avail.
What I have the user doing is, they press a button to create a date which should then refresh the page as soon as it's been confirmed to then show the new date on the home screen.
This works on any browser I've tried (Chrome, Edge, Firefox, Opera) on the desktop although when it comes to mobile devices, the results are quite random.
I've tried this on;
- ASUS Tablet (Doesn't work on Chrome or built in browser)
- iPad 4th Generation (Doesn't work on Chrome or Safari)
- Samsung S6 (Works on Chrome)
- Samsung A3 (Doesn't work on Chrome or built in browser)
Here is the code for the button
<div class="row">
<div class="col col-xs-12 form-group ">
<button onClick="window.location.reload();" type="button" class="btn form-btns btn-primary" id="submit_btn" title="Submit Data" data-placement="bottom" >
<i onClick="window.location.reload();" id="submit_check_icon" class="fa fa-send "></i> Save
</button>
</div>
</div>
Any idea on what the cause of this behaviour could be?
If I've missed any vital information out, please let me know and I'll revise my question.