I\'m trying to include a simple javascript to Google Sites but I get nothing when pressing the button. I put the code inside an HTML Box. The code works perfectly when teste
Google Sites changes your entire script. You have to be a bit more careful writing JavaScript.
Adding var in front of every variable will fix your problem:
var
This will work ;-)