home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2 (Special) / PCPro-2b.iso / Demos / Macromedia / CourseBuilder / CourseBuilderInstaller.exe / Disk1 / data1.cab / Dreamweaver-unInstalled / Configuration / Commands / Confirm.js < prev    next >
Encoding:
JavaScript  |  1999-12-06  |  448 b   |  17 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. function render(args) {
  4.   var btnList="", i;
  5.   document.msg.innerHTML = args[0]; //Insert the question
  6.   if (args.length > 1) {
  7.     for (i=1; i<args.length; i++)
  8.       btnList += "<input type='button' value='"+args[i]+"' onClick='setResult(\""+args[i]+"\")'>";
  9.     document.btns.innerHTML = btnList;
  10.   }
  11. }
  12.  
  13. function setResult(result) {
  14.   RESULT = result;
  15.   window.close();
  16. }
  17.