On Sun, Sep 13, 2009 at 6:08 AM, Patrick Hammer <patrickhamm...@hotmail.com> wrote: > Hi! > > The following html-code doesn't work when I evaluate the cell with the > HTML-mode: > > <script language="JavaScript"> > function test() > { > alert("test"); > } > </script> > <input type="button" onClick="test()"> > > I want to use JavaScript for a little simulation which runs on the client > browsers. > Is there a way to do that? >
Putting this in a worksheet cell works: html("""<script> function test() { alert("test"); } </script> <input type="button" onClick="test()">""") William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---