How to Open a PHP Form/Page in New Window

4 replies
  • WEB DESIGN
  • |
Hi all,

It's me again.

I am creating a form and I was wondering how I can get it opened in a new window with no menus/buttons and all; with only my Form visible.

I know there's a way it can be done in HTML (I don't remember it though), but the form I have is in PHP extension.

Will wait for your precious response(s)

Good day,
#form or page #open #php #window
  • Profile picture of the author surreal
    Your question is a bit vague.
    You can open a new window in a link by using target="_blank"
    Youll likely want to link this to a new page simply with the form to fillout.
    {{ DiscussionBoard.errors[7973785].message }}
    • Profile picture of the author biznics
      Originally Posted by surreal View Post

      Your question is a bit vague.
      You can open a new window in a link by using target="_blank"
      Youll likely want to link this to a new page simply with the form to fillout.
      Thanks for your response.

      I already know about this _blank option but actually, I have asked about a Window with NO BUTTONS. Hope it clears.
      {{ DiscussionBoard.errors[7974442].message }}
      • Hi Ya,

        As per my understanding you can use the following code.
        Following code opens your form in new window with no menus and buttons.
        Just put following lines into an java script function and change the URL to your forms URL
        As you know this function should be called by clicking link.

        See following example.

        <script>

        function open_new_window()
        { window.open('http://www.google.com','winname','directories=no,titlebar =no,toolbar=no,location=no,status=no,menubar=no,sc rollbars=no,resizable=no,width=400,height=350');

        }
        </script>.

        Put this code in your HTML

        <a href="javascript:void(0)" onclick='open_new_window()' >click to open in new window</a>


        I hope this helps.
        {{ DiscussionBoard.errors[7974798].message }}
        • Profile picture of the author biznics
          Yup. That's what I was looking for. Thanks.

          One more thing. Currently, the New Window is opening on the TOP LEFT of the SCREEN. Is there any chance I can control it and make it open in the middle of the screen?

          Good day,


          Originally Posted by eluminoustechnologies View Post

          Hi Ya,

          As per my understanding you can use the following code.
          Following code opens your form in new window with no menus and buttons.
          Just put following lines into an java script function and change the URL to your forms URL
          As you know this function should be called by clicking link.

          See following example.

          <script>

          function open_new_window()
          { window.open('http://www.google.com','winname','directories=no,titlebar =no,toolbar=no,location=no,status=no,menubar=no,sc rollbars=no,resizable=no,width=400,height=350');

          }
          </script>.

          Put this code in your HTML

          <a href="javascript:void(0)" onclick='open_new_window()' >click to open in new window</a>


          I hope this helps.
          {{ DiscussionBoard.errors[7982388].message }}

Trending Topics