Rss Feed
  1. 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);


  2. 1 comments:

    1. Hemant Kumar said...

      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.😀

    Post a Comment