Generating Popup Windows as Confirmation Dialog Boxes


How to generate popup windows as confirmation dialog boxes?



If you want to generate a popup window as a confirmation dialog box, you can use the window.confirm() method. See the following JavaScript code outline:

<a href="/javascript:pWindowConfirm();">Click your ...
<script language="JavaScript">
*  Popup Blocker Test - P_WINDOW_CONFIRM
*  - Popup Windows in Forms of Confirmation Dialog Boxes
*  A popup window shows up in the form of a confirmation
*  dialog box. JavaScript codes implemented to call the 
*  confirm method.
*  Version of 2007.01.01
*  Download at
*  Copyright (C) 2007 All rights reserved.
function pWindowConfirm() {
   fyicenterData = window.confirm('Continue to test with ...

You can also visit Popup Blocker Test - P_WINDOW_CONFIRM page to get the complete source code and to see how it works.

2007-01-17, 7763👍, 0💬