How do I get the location box to display a different URL without loading it?

Jayesh Nazre

Well you cannot do that on the client side using scripts, because when you assign any value to the location object's property "href" in JavaScript then the new URL will be loaded. For further references visit this URL : http://developer.netscape.com/docs/manuals/js/client/jsguide/index.htm

On the server side when you submit data and you want the user to be redirected to a url without changing the location bar then you can do that in JSP/Servlet. In servlet there is a forward() function which serves that purpose. In JSP you have <jsp:forward ..>.