[英]how to open a function in new window ?or new tab?
我要通過單擊按鈕在控制器中調用一個函數...。我希望在新窗口中打開該函數,我們該如何獲取該函數
例如:現在我的網址是
“ http://localhost/codeigniter_cup_myth/index.php/adminController/adminDegree ”
用一個按鈕單擊我在我的adminController中調用函數degreechk
我想要網址
“ http://localhost/codeigniter_cup_myth/index.php/adminController/degreechk ”
在新窗口中打開如何在新窗口中獲取新的URL
僅在提交表單時,才需要在“查看”頁面上進行處理。 在表單標簽中添加屬性target =“ _ blank” 。 例如:
<form id="search" action="/search" method="get" target="_blank">
<input name="q" class="textbox" tabindex="1" onfocus="if (this.value=='search') this.value = ''" type="text" maxlength="80" size="28" value="search">
<input id="submit-button" type="submit" value="Post Your Answer" tabindex="110">
</form>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.