Hello,
I want to dispatch the popstate event. The following code works in all browsers but IE:
dispatchEvent(window, makeEvent(
popstate))’
In IE this returns with the error “Object does not support this action”.
I found a Javascript solution for this problem, but wonder how to translate that into Reason.
if(typeof(Event) === 'function') {
var event = new Event('submit');
}else{
var event = document.createEvent('Event');
event.initEvent('submit', true, true);
}
window.dispatchEvent(event);