<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>In HTML it is possible to create a button in a form 
and cause Javascript to execute</FONT></DIV>
<DIV><FONT size=2 face=Arial>using onClick. For example, the following form 
causes the JavaScript alert function</FONT></DIV>
<DIV><FONT size=2 face=Arial>to be executed when the button is 
clicked.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>&lt;form name="myForm"&gt;<BR>Name: &lt;input 
type="text"<BR>onkeyup="ajaxFunction('Hello');" name="username" /&gt;<BR>Time: 
&lt;input type="text" name="time" /&gt;&lt;br&gt;<BR>&lt;input type=BUTTON 
onClick="alert('GoodBye');" value="GoodBye" /&gt;<BR>&lt;/form&gt;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>In Seaside, I have tried to achieve the same 
without success with the</FONT></DIV>
<DIV><FONT size=2 face=Arial>following button definition:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>renderDoItButtonOn: html</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>&nbsp;html button with: 
'Doit';<BR>&nbsp;&nbsp;onClick: 'alert("GoodBye");'.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>The page refreshes but the JavaScript does not 
appear to execute. Is there a way</FONT></DIV>
<DIV><FONT size=2 face=Arial>to accomplish this? I have tested onKeyUp: and it 
does execute the string as</FONT></DIV>
<DIV><FONT size=2 face=Arial>JavaScript just as I expected.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thank you</FONT></DIV></BODY></HTML>