When I have the following buttons in Google Apps Script html
<button id="movie" onclick="getMovie()">get Movie List</button>
<button id="music" onclick="getMusic()">get Music List</button>
How do I know which button is clicked in Google Apps Script?
I tried using localStorage.getItem
, but the gs file did not recognize localStorage
.
Can I import the value of the clicked button without using the event parameter?