www.webdeveloper.com
Results 1 to 3 of 3

Thread: Form action and html5

  1. #1
    Join Date
    May 2008
    Posts
    16

    Form action and html5

    The w3 explanation of form action attribute is it specifies where to send the form-data when a form is submitted ( http://www.w3schools.com/jsref/prop_form_action.asp ).
    I have a simple javascript widget that calculates something and displayes the result in a designated table cell in the the same page. I have a line
    <form name="form1" action="">
    which works, but w3 code validator for html5 says I can't leave action blank. When I put the url of my page into action it does work, but I am not sure if that's what is indeed supposed to be there. I realize it is not so critical to pass the validator, but I still wonder what is the proper entry into form action if the result is in the same page?

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    my reference says that the action attribute is not necessary in HTML5
    Last edited by Padonak; 08-15-2013 at 04:13 AM.
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  3. #3
    Join Date
    May 2008
    Posts
    16

    Thumbs up

    Quote Originally Posted by Padonak View Post
    my reference says that the action attribute is not necessary in HTML5
    Oh, I did not realize this, thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles