Andy said the following on 5/17/2007 1:12 PM:
<form onsubmit="call_rss();return false;">
<input type="text" name="rssurl" id="rssurl" size="40"
value='Skype'>
</form>
The code above has the value "Skype" and only after hitting Enter/
Return key, the value is submitted. How can the value "Skype" be
submitted automatically without pressing Enter/Return key?
You could start by asking the same question twice in 3 minutes.
window.onload = submitTheForm
function submitTheForm(){
document.forms['theForm'].submit()
}
And give your form a name attribute of "theForm"
P.S. It would be better to use return call_rss() and have call_rss
return true or false.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/