开发者

php how to open new tab or new window

开发者 https://www.devze.com 2022-12-31 19:47 出处:网络
in php my task here is before use开发者_如何学编程r downloads a file i have display a form thr where i can get details of user i.e form1...on click on submit button it will go to next php file where

in php

my task here is before use开发者_如何学编程r downloads a file i have display a form thr where i can get details of user i.e form1...on click on submit button it will go to next php file where it process some logic...from thr i have open new tab or new window in that i have display my file or any thing ....how to do

thank u


You can simply add:

onClick="window.open('http://www.google.com/','mywindow','width=400,height=350')"

To any Anchor or Input tag, or just add this to the head of a file to open automatically.

<script type="text/javascript">
   window.open('http://www.google.com/','mywindow','width=400,height=350');
</script>

^_^ !

0

精彩评论

暂无评论...
验证码 换一张
取 消