htmlbuttonsites

Adding my button to google sites


I click edit page on my google site and then add html box where i add this code

<button type="button" onclick="window.open('http://www.google.com','_blank','resizable=yes')" >Click to open Google</button>

But for some reason it doesn't work, although i tested it on some html editors and it worked. Any ideas?


Solution

  • you can also try this

    <a href="www.google.com" targer="_blank"><input type="button" value="Click to open Google" /></a>