M0nter0 opened a new issue #750:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/750


   We are using version 3.2.1 to load a webpage built in Asp.Net 4.5.2. We have 
been experiencing erratic behaviour, so I've made a page to catch the problem 
and share it here.
   
   This page contains a really simple button executing JS within the [onclick 
event][1]:
   ```lang-html
   <button onclick="alert('1'); alert('2'); alert('3');"> EXECUTION</button>
   ```
   It works perfectly, but when the website is embed in the app, the execution 
order runs backwards, displaying:
   
    - Alert 3
    - Alert 2 
    - Alert 1
   
   Using unobstrusive JS with the same results:
   
   ```lang-html
   <button id="testButton">Test</button>
   ```
   ```lang-js
   $(document).ready(function () {
       $("#testButton").click(function () {
          alert('1');
          alert('2');
          alert('3');
       });
   });
   ```
   
   Running the website in ios with Safari works perfectly fine.
   
   Any idea?
   
   [StackOverflow 
reference](https://stackoverflow.com/questions/62773541/javascript-executing-backwards)
    
   
   
     [1]: https://www.w3schools.com/jsref/event_onclick.asp


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to