...

View Full Version : How to refresh a page?



coolguyraj
06-19-2007, 12:07 PM
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,

digital-ether
06-19-2007, 12:30 PM
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:


location = location;

You can use onmouseout, or onblur events depending on what you want...

eg:


textbox.onblur = function() {
location = location;
};

Philip M
06-19-2007, 12:40 PM
<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()">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum