Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Google Image Search and <input type="image"> elements

         

Sgt_Kickaxe

11:29 am on Aug 15, 2011 (gmt 0)



Simply stated Google will not index images if they are part of the input element of a form. The following works but the image will not be indexed.

<div><form method='POST' action='example.com' target='_blank'><input type='image' src='example.com/image' title='image-title'/></form></div>

Is there a way to have Google recognize images that are part of a form input field? If not is there a way to re-write the above so that perhaps the entire div becomes a clickable form and the image is included within it as a regular image?

This has been asked as far back as 2007 (http://groups.google.com/group/Google_Webmaster_Help-Indexing/browse_thread/thread/62454e57e2e0c27e), and probably before, but there is nothing I could find online about it.

Sgt_Kickaxe

6:02 pm on Aug 15, 2011 (gmt 0)



Any ideas ?

tedster

6:46 pm on Aug 15, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Only the obvious - put the image online in another way, too.

deadsea

9:50 am on Aug 16, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Submit the form onclick on the image with some javascript:

<div>
<form method='POST' name='formfoo' action='http://example.com/' target='_blank'>
<img src='example.com/image' title='image-title' onclick='document.forms.formfoo.submit();'/>
</form>
</div>