html - image working as a submit button -


i code written previous development team , came across code snippt acts bit strangely please take @ , make me understand.

    <!doctype html public "-//w3c//dtd html strict//en"> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">  <html>     <head>     </head>     <body id="ext-gen6" class=" ext-ie ext-ie6 ext-border-box"         leftmargin="0" rightmargin="0" topmargin="0" marginheight="0"         marginwidth="0">         <table border="0" cellspacing="0" cellpadding="0" width="100%"             height="100%">             <tbody>                 <tr>                     <td height="85%" valign="top" width="80%">                         <div>                             <table class="allcolors" border="0" width="100%">                                 <tbody>                                     <tr>                                         <td>                                             <table border="0" cellspacing="0" bordercolor="#6699cc"                                                 cellpadding="0" width="100%" height="685">                                                 <tbody>                                                     <tr>                                                         <td class="threecolors" valign="top">                                                                           <form id="report1"                                                                             enctype="multipart/form-data"                                                                             onsubmit="progressbar()" method="post"                                                                             name="form2"                                                                             action="/cgfsampling/assignreport.do">                                                                                  <input id="assign"                                                                                      src="http://localhost:8080/myproj/images/cation.gif"                                                                                     type="image" name="" value="" />                                                                           </form>                                                                       </td>                                                       </tr>                                                 </tbody>                                             </table>                                         </td>                                     </tr>                                 </tbody>                             </table>                         </div>                     </td>                 </tr>             </tbody>         </table>     </body> </html> 

so please let me know why image working submit button

thnaks, vineet

when type of input image acts submit button. part of specification.

image: graphical submit button. must use src attribute define source of image , alt attribute define alternative text. can use height , width attributes define size of image in pixels.

source


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -