I\'m creating an extremely basic script to assist me in one of my google spreadsheets.
I\'ve successfully got a sidebar showing, with a few buttons (which function).
When I saw your issue, I thought that this is due to <form>
. So I proposed the following modifications.
Modify <form>
to <form onsubmit="event.preventDefault()">
.
Modify <base target="_top">
to <base target="_self">
.
Remove <base target="_top">
.
<button>
type, if not specified defaults to type=submit
. So, The form automatically submits the data to the server. This is not preferable in a iframe.<button type='button'
>event.preventDefault()
to prevent automatic form submission.