<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002288" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002288</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-and-formsimages-image-buttons#comment-1010180</link>
    <description> &lt;p&gt;The submit part is handled by javascript submit() function. Example:&lt;br /&gt;
set your form somewhere in the code (if you want to use buttons, they will need to be in the form. You can use images then you can put the form anywhere else in the doc if you choose)&lt;br /&gt;
&amp;lt;FORM NAME=&amp;quot;my_form&amp;quot; METHOD=&amp;quot;POST&amp;quot; ACTION=&amp;quot;/cgi-bin/process_form.cgi&amp;quot;&lt;br /&gt;
 TARGET=&amp;quot;some_frame&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/p&gt;
&lt;p&gt;Set up your image(I prefer them, but you can do the same w/ a button)&lt;/p&gt;
&lt;p&gt;&amp;lt;A HREF=&amp;quot;#&amp;quot; ONCLICK=&amp;quot;my_function();&amp;quot;&lt;br /&gt;
&amp;lt;IMG NAME=&amp;quot;my_graphic&amp;quot; SRC=&amp;quot;graphics/abc.gif&amp;quot; WIDTH=&amp;quot;50&amp;quot; HEIGHT=&amp;quot;50&amp;quot; BORDER=&amp;quot;0&amp;quot;&amp;gt;&amp;lt;/A&amp;gt;&lt;/p&gt;
&lt;p&gt;Then in your function you can do whatever you want (validate data, close a window, open a window, etc) and when you are ready just do:&lt;/p&gt;
&lt;p&gt;document.my_form.submit();&lt;/p&gt;
&lt;p&gt;The nice thing about submitting the form this way is that you can do it from other frames/windows etc.... Good luck.&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Alan Izat&lt;/p&gt;
 </description>
     <pubDate>Sun, 27 Jun 1999 22:19:00 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1010180 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-and-formsimages-image-buttons#comment-1010179</link>
    <description> &lt;p&gt;Here is the code to have the button appear as an image. As for the submit part, I&#039;m not to sure about it. You would use the &amp;quot;onClick&amp;quot; event handler. I&#039;m sure someone will help you with the code.&lt;/p&gt;
&lt;p&gt;&amp;lt;form&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;input type=&amp;quot;image&amp;quot; src=&amp;quot;URL&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/form&amp;gt;&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
&lt;a href=&quot;mailto:lloydhass@hotmail.com&quot;&gt;lloydhass@hotmail.com&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.vegas.com.au/~jasper&quot; class=&quot;bb-url&quot;&gt;vegas.com.au/~jasper&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 26 Jun 1999 04:25:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1010179 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
