So I have a google site that I use for html hosting and I want to make a button that replaces the current window with a search window. So I do the normal routine:
<button onclick="doThis();">🔎</button>
<script>
function doThis(){
window.location="https://sites.google.com/example/search";
}
</script>
It replaces the window but just says "sites.google.com refused to connect". Anyone know what's going on?