S D
accessd667 at yahoo.com
Tue May 25 04:39:42 CDT 2004
HAHAAHAHA I found it!! I retrieved the source code from www.google.com See below. The following code does the trick: <script> <!-- function sf(){document.f.q.focus();} // --> </script> It references a FORM named f wich has an object named q (the searchbox (input)) Somewhere in the code there's a line: <form action="/search" name=f> and a line that says: <input maxLength=256 size=55 name=q value=""> I think now you can figure it out! Regards, Sander PS: ALWAYS USE GOOGLE TO FIND THE ANSWER :-) <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Google</title> <style> <!--body,td,a,p,.h{font-family:arial,sans-serif;}.h{font-size: 20px;}.q{color:#0000cc;}//--> </style> <script> <!-- function sf(){document.f.q.focus();} // --> </script> </head> <body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onLoad=sf()> <center> <table border=0 cellspacing=0 cellpadding=0> <tr> <td><img src="/images/logo.gif" width=276 height=110 alt="Google"></td> </tr> </table> <br> <form action="/search" name=f> <script> <!-- function qs(el) {if (window.RegExp && window.encodeURIComponent) {var qe=encodeURIComponent(document.f.q.value);if (el.href.indexOf("q=")!=-1) {el.href=el.href.replace(new RegExp("q=[^&$]*"),"q="+qe);} else {el.href+="&q="+qe;}}return 1;} // --> </script><table border=0 cellspacing=0 cellpadding=4> <tr> <td nowrap class=q><font size=-1><b><font color=#000000>Web</font></b> <a id=1a class=q href="/imghp?hl=en&tab=wi" onClick="return qs(this);">Images</a> <a id=2a class=q href="/grphp?hl=en&tab=wg" onClick="return qs(this);">Groups</a> <a id=4a class=q href="/nwshp?hl=en&tab=wn" onClick="return qs(this);">News</a> <a id=5a class=q href="/froogle?hl=en&tab=wf" onClick="return qs(this);">Froogle</a><sup><a href="/froogle?hl=en&tab=wf" style="text-decoration:none;" onclick="return qs(this);"><font color=red>New!</font></a></sup> <b><a href="/options/index.html" class=q>more »</a></b></font></td></tr></table> <table cellspacing=0 cellpadding=0><tr><td width=25%> </td><td align=center> <input type=hidden name=hl value=en> <span id=hf></span> <input type=hidden name=ie value="UTF-8"> <input maxLength=256 size=55 name=f value=""> <input maxLength=256 size=55 name=q value=""> <input maxLength=256 size=55 name=d value=""> <br> <input type=submit value="Google Search" name=btnG> <input type=submit value="I'm Feeling Lucky" name=btnI> </td> <td valign=top nowrap width=25%> <font size=-2> <a href=/advanced_search?hl=en>Advanced Search</a><br> <a href=/preferences?hl=en>Preferences</a><br> <a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><p><br><font size=-1><a href="/ads/">Advertising Programs</a> - <a href="/services/">Business Solutions</a> - <a href=/about.html>About Google</a> - <b><a href=http://www.google.nl/>Go to Google Nederland</a></b> <span id=hp style="behavior:url(#default#homepage)"></span> <script> //<!-- if (!hp.isHomePage('http://www.google.com/')) {document.write("<p><a href=\"/mgyhp.html\" onClick=\"style.behavior='url(#default#homepage)';setHomePage('http://www.google.com/');\">Make Google Your Homepage!</a>");} //--> </script> </font><p><font size=-2>©2004 Google - Searching 4,285,199,774 web pages</font></p></center></body></html> S D <accessd667 at yahoo.com> wrote: Hi Paul, sorry but I do not know how to do this (I did it once in C# but that's a whole diff ballgame). You could try http://asp101.aspin.com/ or http://www.w3schools.com/vbscript/vbscript_ref_functions.asp?output=print http://www.asptutorial.info/ http://4guysfromrolla.com/webtech/amb/amb.beginnerasp.shtml HTH. Sander paul.hartland at fsmail.net wrote: To all, Sorry about the HTML OT's but don't know where else to ask. I now have a working logon page which queries an Access database. What I would like is when the logon page appears is to have the focus set to Username. Does anyone have any idea how I do this ? Also can anyone recommend a good HTML/ASP list ? Thanks in advance Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger