aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes can we add or remove a form attribute by javascript ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "can we add or remove a form attribute by javascript ?" Watch "can we add or remove a form attribute by javascript ?" New topic
Author

can we add or remove a form attribute by javascript ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
thank you for reading my post
can we add or remove form attributes ( i mean for example things like password , username ,...) by using javascript ?

for example when i post my jsf form to a 3rd pary web page it adds some more parameters than what i need , 3rd party web page does not accept post with more/less than 3 parameters
so i need to remove those two parameters from the url in post method

i should say that i use javascript to assign action and and submit the form

thanks
vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
I don't know if this would serve any purpose for you but you can set the values of the unwanted parameters to empty strings. Like
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can we add or remove a form attribute by javascript ?