<input type="button" id="button1" value="button1"/>
var customFloatingObject = new GcSpread.Sheets.CustomFloatingObject("f1", 10, 10, 60, 64);
customFloatingObject.isSelected(true);
var btn = document.createElement('button');
btn.style.width = "60px";
btn.style.height = "30px";
btn.innerText = "button";
customFloatingObject.Content(btn);
activeSheet.addFloatingObject(customFloatingObject);
var customFloatingObject1 = new GcSpread.Sheets.CustomFloatingObject("f2", 10, 100, 60, 40);
var btn1 = document.createElement('button');
btn1.style.width = "60px";
btn1.style.height = "30px";
btn1.innerText = "button";
customFloatingObject.Content(btn1);
activeSheet.addFloatingObject(customFloatingObject1);
$("#button1").click(function () {
activeSheet.isPaintSuspended(false);
activeSheet.removeFloatingObject("f2");
activeSheet.repaint();
});