Your scripts works on windows if you remove all new lines between <script>
</script> in your script:
On windows some javascripts events don't work however at the moment.
<script>function displayDate(){document.getElementById("demo"
).innerHTML=Date();}</script>
<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>
<button type="button" onclick="displayDate()">Display Date</button>
kl. 18:22:44 UTC+2 fredag 19. oktober 2012 skrev iBayer følgende:
>
> Hey,
>
> the title says it all.
> I just tried to copy & paste code
> into the card editor but that didn't seem to work.
>
> Thanks,
> Immanuel
> ----
>
> <script>
>
> function displayDate()
>
> {
>
> document.getElementById("demo").innerHTML=Date();
>
> }
>
> </script>
>
>
>
> <h1>My First JavaScript</h1>
>
> <p id="demo">This is a paragraph.</p>
>
>
> <button type="button" onclick="displayDate()">Display Date</button>
>
> ---
>
>
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/mnemosyne-proj-users/-/fF9mty-0Vy8J.
For more options, visit https://groups.google.com/groups/opt_out.