On Sun, Sep 13, 2009 at 6:08 AM, Patrick Hammer
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---