What is the equivalent of the following code in javascript
$("body").on("PhantomInitEvent", function(){
getReviewData();
supplies_onFocus();
});
$("body").trigger("PhantomInitEvent");
What is the equivalent of the following code in javascript
$("body").on("PhantomInitEvent", function(){
getReviewData();
supplies_onFocus();
});
$("body").trigger("PhantomInitEvent");
It's already in JavaScript. If, however, you mean what it would look like without jQuery:
document.body.addEventListener("PhantomInitEvent", function() {
getReviewData();
supplies_onFocus();
});
element.attachEvent('onPhantomInitEvent', handler);
element.addEventListener('PhantomInitEvent', handler, false);