Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    93
    Thanks
    5
    Thanked 0 Times in 0 Posts

    How to refresh a page?

    Hi,

    I have a text box ,When the mouse cursor moves out of the text box the page shoud refresh.

    How can i do this ,Can anybody help me.

    Thanks,

  • #2
    New Coder
    Join Date
    May 2006
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by coolguyraj View Post
    Hi,

    I have a text box ,When the mouse cursor moves out of the text box the page shoud refresh.

    How can i do this ,Can anybody help me.

    Thanks,
    I believe theres a refresh() method of the window or window.location but you could achieve the same with:

    Code:
    location = location;
    You can use onmouseout, or onblur events depending on what you want...

    eg:

    Code:
    textbox.onblur = function() {
    location = location;
    };
    Fiji Web Design - where i do Joomla Web Design
    Bucabay.com - My blog

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    <input type = "text" name = "textbox1" onblur = "reld()">

    <Script type = "text/javascript">

    function reld() {
    window.location.reload();
    }

    </Script>

    or more simply:-

    <input type = "text" onblur = "window.location.reload()">
    Last edited by Philip M; 06-19-2007 at 11:51 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •