Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  

Enviar Form Pra Popup


Tipo galera eu tenho uma página: DEFAULT.ASP e nela tem um formulário dai eu quero que ao clicar botão "enviar" do formulário ele abra uma popup com os dados enviados pra esta popup (method GET ou POST tanto faz..)

Então entenderão ??

porque quero enviar esse form para uma popup e não mexer na página default.asp...

sakou ?

Ajuda aí.. por favor..


Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

No botão de submit coloque um onclick="window.open('about:blank','pop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=300');"

e no form poe target="pop"


<form action="about:blank" target="pop" method="POST">


<input type="text" name="nome"/><br/>

<input type=

"submit" onclick="window.open('about:blank','pop','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=300');" value="Enviar"/>



ps: substitue & #39; por apóstofe ( ' ) :)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...