Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-21-2010, 10:12 PM   PM User | #1
Ahlahn
New Coder

 
Join Date: Sep 2010
Location: The Twilight Zone
Posts: 86
Thanks: 17
Thanked 2 Times in 2 Posts
Ahlahn is an unknown quantity at this point
What's the purpose of specifying the name of a form?

What's the point of having the name in ...

<form id="form" name="form" method="post" action="mailto:example@email.com">

The method identifies what the form will be used for (to collect data), and the action specifies what happens with the data.

So what's the deal with the name?

Thanks!
Ahlahn is offline   Reply With Quote
Old 12-21-2010, 11:40 PM   PM User | #2
jmace
New Coder

 
Join Date: Oct 2010
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
jmace is an unknown quantity at this point
For DOM referencing in languages like JavaScript.
As in:
Code:
    <html>
<head>
    <script type="text/javascript">
        function formname(){
            alert(document.myform)
        }
    </script>
</head>
<body onload="formname()">
    <form name="myform"></form>
</body>
    </html>
jmace is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:47 PM.


Advertisement
Log in to turn off these ads.