關於頁面.do事件的跳轉方法

來源:互聯網
上載者:User

方法一:

 <html:form action="DmrApplicationConfirm.do" method="post">

<html:submit />

方法二:

 <html:form action="/DmrApplicationConfirm" method="post">

<html:submit />

方法三:

<html:button property="sbumit" value="確認をする" onclick="window.location.href=' DmrList.do' "></html:button>

方法四:

<a href="<%=Con_Path %>/DmrList.do"><img src="<%=Con_Path %>/img/dmr/user/btn_next_back.gif" alt="次へ(確認)" width="177" height="31" border="0"></a>

<%=Con_Path %>是取得絕對的url,也可以使用絕對的url代替

方法五:

<script language="javaScript">
function toDmrApplication(){
  
<!-- get birthDay-->
 var frm=document.DmrApplicationConfirmForm;
 if(validateDmrApplicationConfirmForm(frm))
 {
 var year=frm.birthYear.value;
 var month=frm.birthMonth.value;
 var day=frm.birthDay.value;
 frm.birthDate.value=year+"/"+month+"/"+day;
 frm.hassubmit.value = true;
 
<!-- get giftCd -->
 if(frm.giftFlag.value==1){
  if(frm.giftName1.value=="" && frm.gift.checked){
   frm.giftCd.value=frm.giftCd2.value;
  }else if (frm.giftName2.value=="" && frm.gift.checked){
   frm.giftCd.value=frm.giftCd1.value
  }else{
   if(frm.gift[0].checked){
    frm.giftCd.value=frm.giftCd1.value;
   }else if(frm.gift[1].checked){
    frm.giftCd.value=frm.giftCd2.value;
   }
  }
 }
 frm.submit();
 }
}
 
</script>

<html:form action="DmrApplicationConfirm.do" method="post" onsubmit="return validateDmrApplicationConfirmForm(this);">

<html:button property="sbumit" value="確認をする" onclick="javaScript:toDmrApplication();"></html:button>

 

 

暫時就用到這幾種,這也是常用的方法,應該還有,希望探討!

另補三則:

1. <a href="<%=Con_Path %>/DmrList.do"><img src="<%=Con_Path %>/img/dmr/user/btn_next_back.gif" alt="一覧へ戻る" width="177" height="31" border="0"></a>

2.  <a href="javaScript:toDmrApplication();"><img src="<%=Con_Path %>/img/dmr/user/btn_next_kakunin.gif" alt="確認する" width="177" height="31" border="0"></a>

3.<a href="javaScript:history.back();"> 或者<input type="button" class="btn" value="修正する" onClick="history.back()">

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.