open a new window on form post

Posted on 2001-08-13
Last Modified: 2008-03-06
i have a problem with javascript. i am able to open a new window without toolbar & menubar on a button/link click. how do i open a new window on form(post) submit.i want the data in the form to be posted and resulting page should be shown in new window without toolbar & menubar. is there any way to solve this? please can any one help on this?
Question by:veeru_b
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 15

Expert Comment

ID: 6382997
Here you go:

<form action="whatever" method="post" target="newwin" onSubmit="'', 'newwin', 'width=300,height=300');">



Author Comment

ID: 6383018
thanks a lot. i will just try this and if there is any problem i will get back to you.
LVL 15

Accepted Solution

a.marsh earned 100 total points
ID: 6383040
Be careful - EE wraps lines of code sometimes when they shouldn't be wrapped - make sure the onSubmit is all on the same line otherwise you might get a javascript error.



Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question