modal-video
modal-video copied to clipboard
Show popup on pageload
Hi
Is there a way to show the popup on pageload.
hi its very easy using a simple function in javascript
Open Video
` window.onload = function() {
// Trigger on load $("#clickButton").click();
function display(msg) { var p = document.createElement('p'); p.innerHTML = msg; document.body.appendChild(p); } }; window.addEventListener('DOMContentLoaded',function(){ new ModalVideo(".js-video-btn"); }); `
@dysat is there away to destroy ModalVideo ?
Hi @ayafaheem modal-video doesn't have such method to destroy modal-video When do you want to destroy ModalVideo?