如何在html中从一页导航到另一页 [英] how to navigate from one page to other page in html

查看:100
本文介绍了如何在html中从一页导航到另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建一个需要链接的页面,如果单击提交"按钮,则应导航到主页.请问我应该如何帮助我

am creating a page which requires links if submit button is clicked it should navigate to home page.how should i do that plz help me

推荐答案

首先不清楚提交按钮上还有其他操作是服务器端控件还是html输入?
假设您的提交"按钮是html提交按钮,则会调用javascript函数以转到首页,如下所示:
First we are not clear that what other operation there on submit button, is it a server side control or just html input??
assuming that your submit button is a html submit button, will call a javascript function to go to home page like this:
<script type="text/javascript">
       function NavigateToHome() {
           location.href = "Home.aspx";
       }
   </script>


<input type="submit" id="btnSave" value="Submit!!!" onclick="NavigateToHome();" />


此链接可能对您有帮助

http://www.w3schools.com/jsref/met_win_open.asp [
This Link may help you

http://www.w3schools.com/jsref/met_win_open.asp[^]


您可以使用此链接
http://www.plus2net.com/html_tutorial/button-linking .php [^ ]
http://www.justskins.com /forums/onclick-link-to-next-30604.html [ ^ ]
You can use this link
http://www.plus2net.com/html_tutorial/button-linking.php[^]
http://www.justskins.com/forums/onclick-link-to-next-30604.html[^]


这篇关于如何在html中从一页导航到另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆