peoplecode close current window

peoplecode close current window

how to peoplecode close current window by javascript

  • Example 1: If you want close window from link

<script language=’JavaScript’>
function close_win0()
{
top.window.close();
}
</script>

<input type=’url’ name=’Quit’ id=’Quit’
value=”close window” ” onclick=”close_win0();” />

  • Example 2: If you want close window from button

<input type=’button’ name=’Quit’ id=’Quit’
value=”close window” ” onclick=”close_win0();” />

  • Example 2: If you want close window from hyperlink

<a href=”javascript:close_win0();”>Close Window</a>

Posted in Peoplecode.