2

This code will submit a form to a new window

<form action="..." method="post" target="_new">

But is it possible to make the new window start without the address bar and define its size ?

456543646346
  • 973
  • 4
  • 15
  • 22
  • I think you need to use javascript. check out the 2nd answer in this thread: http://stackoverflow.com/questions/726761/javascript-open-in-a-new-window-not-tab – dewd May 19 '13 at 11:23

2 Answers2

9

Using javascript :

<a href="link" onClick="javascript:window.open('http://link','Windows','width=650,height=350,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');return false")">Link text</a>
Souad
  • 4,856
  • 15
  • 80
  • 140
  • i'm not looking for a link.... I already have a form that opens a new window when submitted, but i want that window to come without address bar – 456543646346 May 19 '13 at 18:51
  • the button of the form is also as a link, we put this link in **action** parameter. you can just include the event OnClick on the button. try it – Souad May 19 '13 at 19:21
0

you can mention header tag on your action page. is this what you are looking for?

header("location:something.php");