Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q1761 How can I close the current popup window's opener?

You are here: irt.org | FAQ | JavaScript | Window | Q1761 [ previous next ]

You can close a main window without confirmation using the next script code:

<script language="javascript">
function closeWin() {
  return true;

Then in the button onClick event ...

<input type="button" onClick="return closeWin()">

Submitted by Guille!

©2018 Martin Webb