如何在asp.net的相同选项卡中使用javascript打开另一个aspx页面 [英] how to open another aspx page using javascript in the same tab in asp.net
问题描述
点击Html输入按钮的事件,我需要重定向到另一个页面,请告诉我如何在javascript中重定向
on click event of Html input button , i need to redirect to another page , please tell me how to redirect in javascript
推荐答案
只需设置该页面的URL
Hi,
Just set the URL of that page
document.window.location="[URL]";
对不起我的错误
Sorry my mistake
<script language="javascript" type="text/javascript">
window.location.href="Url";
</script>
您好,
您可以使用以下内容:
Hi,
You can use some thing like the following:
// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");
// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";
前参考你也可以参考以下链接。
从一个页面重定向到另一个页面
使用javascript / Jquery重定向到asp.net MVC中的另一个页面>
如何使用jQuery或仅使用Javascript将按钮重定向到另一个页面
如何在jQuery / JavaScript中创建重定向页面?
谢谢
Fore reference you can refer the following links too.
To redirect from one page to another page
Redirecting to another page in asp.net MVC using javascript/Jquery
How to make a button redirect to another page using jQuery or just Javascript
How can I make a redirect page in jQuery/JavaScript?
Thanks
这篇关于如何在asp.net的相同选项卡中使用javascript打开另一个aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!