Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How can I set the form action through JavaScript?

//Set your form action
document.getElementById('myFormId').action="./myPage.myLanguage"

//display on console your form action
connsole.log(document.getElementById('myFormId').action)

//retrive the action from a selected Form
document.getElementById('myFormId').action
 
PREVIOUS NEXT
Tagged: #How #I #set #form #action
ADD COMMENT
Topic
Name
5+6 =