Including javascript to google sites

后端 未结 2 713
孤城傲影
孤城傲影 2021-01-01 00:09

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

2条回答
  •  天涯浪人
    2021-01-01 01:07

    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:

    
    
    

    This will work ;-)

提交回复
热议问题