<input type="submit" value="Update record" onafterupdate="window.close();" ">
<input type="submit" value="Update record" onafterupdate="self.close();" ">