I have this javascript that fetches a users folderID and gives back a link to that folder.
<script>
function onSuccess(ID_FOLDER) {
var div = document.getElementById('output');
var FolderPathURL = "https://drive.google.com/drive/folders/"+ID_FOLDER+"";
div.innerHTML = "<a href='"+FolderPathURL+"' target='_blank'>Link to Folder</a>"
}
google.script.run.withSuccessHandler(onSuccess).getFolderIds();
</script>
The html looks like this, and a href link is presented. This works as is right now.
<div id="output">Folder URL</div>
But i need the link to be a button (a google css blue action button), so when they click the button the link opens.
<button class="action">Show Folder</button>
div.innerHTML = '<button class="action" onmouseup='window.open("' + FolderPathURL + '" >Open your Folder</button>