• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

open a new window on form post

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
veeru_b
Asked:
veeru_b
  • 2
1 Solution
 
a.marshCommented:
Here you go:

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


:o)

Ant
0
 
veeru_bAuthor Commented:
thanks a lot. i will just try this and if there is any problem i will get back to you.
:o)
veeru.
0
 
a.marshCommented:
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
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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now