php how to open new tab or new window
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>
^_^ !
精彩评论