AnsweredAssumed Answered

Function not Firing From Button

Question asked by ipeebles on Apr 7, 2015
Latest reply on Apr 8, 2015 by kenbuja

Good afternoon.  I have an application where I am tying a function to a button.  When the button is pressed, I want the window/application to close.  For some reason, I am getting the message that exitApplication is not defined.  Here is my simple code:

 

JavaScript

 

  // Exit Application if User does not Acknowledge

  function exitApplication() {

     window.close();

  }

 

HTML Portion

 

<div dojotype="dijit.form.Button" id="buttonExit" data-dojo-type="dijit/form/Button" type="button" style="align-content: center" onclick="exitApplication();">Close</div>

 

I have this working in another application (JavaScript 3.9 API).  I am now trying to get this to work using the JavaScript 3.13 API.

 

Anyone have any ideas?

 

Thanks.

Outcomes