Java script to reload a page in Html and Cakephp
onclick="document.location.reload(true)"
JS onclick event in html
<a href="#" onclick="document.location.reload(true)"></a>
Js onClick event in cakephp
<?php echo $this->Html->image('image.png',array('onClick' => "document.location.reload(true)"),array('escape' => false)); ?>
Reload function in javascript
location.reload();
window.setTimeout('location.reload()', 3000);
Reload function in javascript
location.reload();
window.setTimeout('location.reload()', 3000);
Woow Awesome post. This is really helpfull for me. You made my day. I just loved this article. You helped me alot so I just wanna say thanks to you.
Thank you.😀