Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Change form target ...

Javascript coding ..

Moderators: macek, egami, gesf

Change form target ...

Postby WoozyDuck » Thu Apr 14, 2005 7:02 am

Hi all

For instance we have a form with BLANK target to show the action in new window. is it possible to change this target dynamicly before clicking the submit button?

I mean is it possible to give the users the option to show the action in SAME WINDOW or NEW WINDOW at one form?
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am

Postby sadisticmachine » Thu Apr 14, 2005 11:11 am

two submit buttons, each with a different target parameter.
sadisticmachine
New php-forum User
New php-forum User
 
Posts: 109
Joined: Tue Nov 02, 2004 5:33 am

Postby Alexej Kubarev » Thu Apr 14, 2005 1:13 pm

or you way play around with functions and onsubmit property
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby WoozyDuck » Fri Apr 15, 2005 9:27 am

I have actually used a function to change form.target
cheers
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron