Print or echo javascript variable, not document, but be a value or part of a value for a DOM element, specifically for a form action
3 answers
Then you can change the action of the form to be equal to the variable name. Something like the following.
var variableName = "myform.htm";
this.form.action = variableName;
Edit, you can also do this with other elements as with any other javascript snippet, using things like "getElementById ()" to get the elements from the DOM
+3
source to share