Mr. Evertjan is right, Forms are created by using HTML tags. You may
however define functions that relate to the form withing JavaScript tags.
Inside the script tags are where you declare your javascript variables,
assign objects and declare functions. Using Event handlers withing the HTML
form such as onClick you may call your functions.
An example might be:
<form name="myform">
<input type="button" name="Button1" value="Vector 1"
onClick="swap1();">
<input type="button" name="Button2" value="Vector 2"
onClick="swap2();">
<input type="button" name="Button3" value="Vector 3"
onClick="swap3();" >
<input type="button" name="Button4" value="Vector 4"
onClick="swap4();" >
</form>
Good luck,
-Charlene
Intro. JavaScript
http://www.eclecticacademy.com
"Frederik S" <tr***********@hotmail.com> wrote in message
news:3f**********************@dread14.news.tele.dk ...
Hello,
I'm making a nice little login box in Javascript but having problems
Posting the value inside a textfield.
In a nutshell:
I have a function:
function getPostData (value)
Which correctly gets the value, but how do I then create a form and
submits inside Javascript?
Help much appreciated,
Frederik Sunne