javascript - Force a page to reload using a query string -
is there simple way forcefulness page reload using query string?
i've constructed low bandwidth version of website activating via url foo.com/?il_light_mode=on , foo.com/?il_light_mode=off
works i'm having difficulty in getting browser reload page when user clicks activation link.
update hacky workable solution setting history 0 foo.com/?il_light_mode=on&javascript:history.go(0) , foo.com/?il_light_mode=off&javascript:history.go(0)
has obvious disadvantage of rendering button history useless.
in php, on top utilize this:
<?php if(isset($_get['il_light_mode'])) { // actions header("location: http://foo.com"); exit; } ?>
javascript php html
No comments:
Post a Comment