Input search field on Google page

380 views
Skip to first unread message

David Schulberg

unread,
Nov 4, 2013, 2:15:21 AM11/4/13
to fir...@googlegroups.com
I am trying to identify the input field on a Google home page. When I move the Firebug arrow on to the Search input field the display shows with the latter  'input id' is highlighted (as below). How come there are two 'input id' statements?  If I step the arrow out from the middle of Search input box the highlighting switches to the top level td statement. I am doing this to identify the name of the input field, which for some reason is specifically tied to the first 'input id' only.

<td id="gs_tti0" class="gsib_a">
<div id="gs_lc0" style="position: relative;">
<input id="lst-ib" class="gsfi" type="text" autocomplete="off" size="41" title="Search" value="" maxlength="2048" name="q" style="border: medium none; padding: 0px; margin: 0px; height: auto; width: 100%; background: url("data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw%3D%3D") repeat scroll 0% 0% transparent; position: absolute; z-index: 6; left: 0px; outline: medium none;" dir="ltr" spellcheck="false">
<input id="gs_htif0" class="gsfi" disabled="" autocomplete="off" aria-hidden="true" style="border: medium none; padding: 0px; margin: 0px; height: auto; width: 100%; position: absolute; z-index: 1; background-color: transparent; color: silver; left: 0px; visibility: hidden;" dir="ltr">
</div>
</td>


Sebastian Zartner

unread,
Nov 5, 2013, 4:04:09 AM11/5/13
to fir...@googlegroups.com
Well, for me there are even three <input> fields. I don't know what the last one (id="gs_htif0") is for, but the first one (id="gbqfq") contains the string you've entered and the second one (id="gs_taif0") is used for showing a search suggestion in light gray.

Sebastian
Reply all
Reply to author
Forward
0 new messages