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

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact