[英]how to open a function in new window ?or new tab?
I am calling a function in my controller from a button click .... I want the function to be opened in a new window how can we get that 我要通过单击按钮在控制器中调用一个函数...。我希望在新窗口中打开该函数,我们该如何获取该函数
ex: now my url is 例如:现在我的网址是
" http://localhost/codeigniter_cup_myth/index.php/adminController/adminDegree " “ http://localhost/codeigniter_cup_myth/index.php/adminController/adminDegree ”
with a button click i am calling a function degreechk in my adminController 用一个按钮单击我在我的adminController中调用函数degreechk
I want the url 我想要网址
" http://localhost/codeigniter_cup_myth/index.php/adminController/degreechk " “ http://localhost/codeigniter_cup_myth/index.php/adminController/degreechk ”
to be opened in a new window How can i get the new url in a new window 在新窗口中打开如何在新窗口中获取新的URL
You have to handle it on the View page only if you are submitting the form. 仅在提交表单时,才需要在“查看”页面上进行处理。 add attribute target="_blank" in your form tag.
在表单标签中添加属性target =“ _ blank” 。 For Ex:-
例如:
<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.