When you append any Google Sheet URL with "&rm=minimal" (omitting the double quotes) - the Sheet will very nicely render in any browser without the Tool Bar or Formula bar.
This frees up a lot of space and is great for applications where you don't want/need those screen elements - and you just want users to see the sheet.
However, I have a couple of onOpen commands in my associated script which does not run in a sheet whose URL has been modified with "&rm=minimal"
function onOpen() {
SpreadsheetApp.getActiveSheet().getRange('test!A1').clearContent();
SpreadsheetApp.getActiveSheet().getRange('test!A15').clearContent();
}
Does anyone know why this is happening -- and if there is a workaround?