Piett
...will circle this city
- Joined
- 30 Apr 2002
- Messages
- 528
This is most likely something that madmatt will know how to fix:
I'm trying to get this Google search to work on my desktop. It's all HTML (so far), but I am unhappy with it. Currently it works fine, just not like i want it to. After i search for something and the Google page opens up, the text that i entered in the text box remains. I know that Javascript is needed, but i'm not too sure how i should go about it. Anyone have any suggestions?
Here's is the code:
<body bgcolor="#004E98">
<FORM method=GET action="http://www.google.com/search">
<font face="Ariel">
<font size="2" value style="color: #FFFFFF">Google: </font>
<input TYPE="text" name="text" size="25" maxlength="255" value style="color: #FFFFFF; font-family: Ariel; font-size: 8pt; border: 1px solid #FFFFF; background-color: #004E98"><font size="2">
</font>
<input type="submit" name="btnG" VALUE="Search" style="font-family: Ariel; font-size: 10pt; color: #FFFFFF; height: 17; position: relative; border: 1px solid #FFFFF; padding-bottom: 1; background-color: #004E98" onclick"buttonPushed_onclick()"></font>
<SCRIPT LANGUAGE=JavaScript>
function buttonPushed_onclick()
{
text.value=""
}
</form>
</table>
</body>
All help is appreciated.
I'm trying to get this Google search to work on my desktop. It's all HTML (so far), but I am unhappy with it. Currently it works fine, just not like i want it to. After i search for something and the Google page opens up, the text that i entered in the text box remains. I know that Javascript is needed, but i'm not too sure how i should go about it. Anyone have any suggestions?
Here's is the code:
<body bgcolor="#004E98">
<FORM method=GET action="http://www.google.com/search">
<font face="Ariel">
<font size="2" value style="color: #FFFFFF">Google: </font>
<input TYPE="text" name="text" size="25" maxlength="255" value style="color: #FFFFFF; font-family: Ariel; font-size: 8pt; border: 1px solid #FFFFF; background-color: #004E98"><font size="2">
</font>
<input type="submit" name="btnG" VALUE="Search" style="font-family: Ariel; font-size: 10pt; color: #FFFFFF; height: 17; position: relative; border: 1px solid #FFFFF; padding-bottom: 1; background-color: #004E98" onclick"buttonPushed_onclick()"></font>
<SCRIPT LANGUAGE=JavaScript>
function buttonPushed_onclick()
{
text.value=""
}
</form>
</table>
</body>
All help is appreciated.