Submit buttons and popup windows

I have an html page with a form that submits information and shows the results on another page. I need this page to pop up in another window. Is this possible?
kch011099Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
sanekCommented:
Sure.
Just use target in <form ...> tag.

<form action=your_cgi method=... target=new>


0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
kch011099Author Commented:
I want to be able to limit the size. Is this possible too?
0
 
sanekCommented:
Limit the size of new window?
Yes, you can use this as prototype:
<form action="your_cgi.cgi" method=post name="status" target="my_new_window" onSubmit="window.open('','my_new_window','resizable=yes,menubar=yes,scrollbars=yes,width=400,height=400'); window.setTimeout('document.status.submit()',2000); return false;">

It will open a window of 400x400
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
sanekCommented:
The whole tag should be as single line!
0
 
kch011099Author Commented:
Ok, I tried it and it opens up the new window, but the window remains blank. Any thoughts?
0
 
kch011099Author Commented:
Also, it is not sending and recording the info to the perl script.
0
 
kch011099Author Commented:
Ok, I got it to work.
I had to remove the
;window.setTimeout('document.status.submit()',2000); return false;
portion of it. Everything works great now.

Thanks
0
 
sanekCommented:
Oh, yeah, sorry I've cut-and-pasted with extra unneccessary data.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.