Hello and i hope that everyone is having a good day,
i have two buttons on my site which are used to do two things: hide the content to show the background and display an overlay/modal menu.
The scripts work perfectly in ie11, Edge, Chrome, Opera, Firefox 59 on my public pages. However, after i login to my app, the scripts only work in Edge and ie11. Why?
i have tried everything and only onclick with a simple function will work. I don’t understand why the exact script works on the public side. I’ve made no changes other than css id names.
Firefox reports that my function is not defined but it does not do this on the public pages.
onclick="return openOverlay();"
function openOverlay() {
(function() {
//my code
});
}
anyone know why? or maybe someone can help me with a secure onclick event script?