In custom_ajax.html I defined the following function: function closeWin() { window.close(); return false; }
I a function I added a cancel button to a form: This one works: form[0][-1] [1].append(INPUT(_type='button',_value='Cancel',_onclick='javascript:history.go(-1)')) This one doesn't: form[0][-1] [1].append(INPUT(_type='button',_value='Cancel',_onclick='javascript:closeWin()')) Does one of you know why not? Kind regards, Annet.