Created
March 12, 2021 04:20
-
-
Save WakkyFree/99003a8f46da306835e65d64ed76d415 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
<script type="text/javascript"> | |
function update() { | |
google.script.run | |
.withSuccessHandler(result).getScriptUrl(); | |
function result(url){ | |
window.open(url, '_top') | |
} | |
} | |
</script> | |
</head> | |
<body> | |
<input type="button" value="ブラウザ更新" onclick="update()"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems this method doesn't work. I did use of it and now appers this message on console:
Unsafe attempt to initiate navigation for frame with origin
Do you know another alternative?