Solved

open a new window on form post

Posted on 2001-08-13
3
172 Views
Last Modified: 2008-03-06
hi,
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?
thanks
veeru.
0
Comment
Question by:veeru_b
  • 2
3 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6382997
Here you go:

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


:o)

Ant
0
 

Author Comment

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

Accepted Solution

by:
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.

:o)

Ant
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now