Javascript function
| From: | Christian Ista | Date: | Wed, 19 Feb 2003 15:47:52 +0000 |
| Subject: | Javascript function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136197@lists.php.net to get a copy of this message | ||
Hello,
Example, I have this function :
void function MyExampleFunction(){
document.form_name.element_name.focus();
}
I'd like do something like that, I call the function like that :
MyExampleFunction('form_name.element_name');
And do that :
void function MyExampleFunction(theelement){
document.theelement.focus();
}
but that's not work ?
An idea ?
Christian,