iT邦幫忙

0

關於輸入訂單編號自動跳到指定目錄~

我想設計一個網頁

希望在上面出現一個填訂單編號的方塊
當按送出後 自動跳到 /databs/在方塊填的訂單編號/index.php
有辦法嗎?
如果可以的話
請將網頁原始碼php or html都可以
回覆給我
萬分感激~

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

10
海綿寶寶
iT邦大神 1 級 ‧ 2013-06-23 22:41:04
最佳解答
<pre class="c" name="code">

<script language="Javascript">
   function changeurl() {
      window.open("http://xxx.com/databs/" + document.getElementById("orderno").value + "/index.php");
   }
</script>
<input type=text id="orderno"/>
<input type=button value="SEND" onclick="changeurl();"/>

我要發表回答

立即登入回答