开发者

Displaying jsp page on same location using javascript

开发者 https://www.devze.com 2023-03-03 18:08 出处:网络
How to display jsp pageon same locationusing javascript.I tried below ways,but no luck: location.href=\'./start.do\';

How to display jsp page on same location using javascript.I tried below ways,but no luck:

location.href='./start.do';
self.loca开发者_如何学编程tion.href='./start.do';

chaitu


Perhaps you mean: window.location.assign('start.do');

Otherwise I'm not clear on what the question is asking. I'm assuming you mean that you want to load a JSP page whose location is in the same folder as the current page (in which case, no need to use ./ in the location).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号