| 
	
 | 
 Posted by jojo on 06/12/03 11:51 
Andy Dingley <dingbat@codesmiths.com> schrieb: 
 
> jojo had the right idea, but coded 
> it unworkably badly. 
 
OK, you're right, seems like I haven't really thought about it before  
posting it, I'm sorry. I forgot that the JS-Function has to be started  
by click on an hyperlink... 
 
This code will do it: 
 
function SubmitForm(a){ 
  document.forms[0].submit(); //if it is the first form in your code 
  return false; 
} 
 
To call the code add onclick="SubmitForm()" to your hyperlink. 
Or, if it is not supposed to work for users with JavaScript disabled you  
can set the href to "javascript:SubmitForm()", a Browser without  
JavaScript will ignore this.
 
  
Navigation:
[Reply to this message] 
 |