I created a popup window with html, css and js all in a .html file, I want to incorporate that popup in the "home page" that I'm designing in Wordpress with Avada Theme and that you see nothing else when loading the page. I've already tried with multiple plugins and they do not work. In which folder of wordpress or Avada theme do I place this html file (popup) and where do I call the function to appear on the home page?
function popup(mylink, windowname) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string') href=mylink;
else href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
<BODY onLoad="popup('autopopup.html', 'ad')">