Hi I have popups in my site generated by a script that I inherited (I know nothing about js.. )
I need to reposition the popup further down and to the left.
Could you tell me what I need to add to this, please?
(function() { 'use strict'; function init(){ if (navigator.userAgent.indexOf('Edge') >= 0){ return; } var left=document.getElementById('left'); var right=document.getElementById('right'); var box4=document.getElementById('box4'); var head=document.getElementById('head'); var nav=document.getElementById('nav'); var horizontal2=document.getElementById('horizontal2'); var footer=document.getElementById('footer') var hgt=[left.offsetHeight,right.offsetHeight,box4.offsetHeight]; hgt=(Math.max(hgt[0],hgt[1],hgt[2])); if(window.name=='newwindow') { if(document.getElementById('name')){ document.getElementById('name').style.display=''; } header.style.display='none'; nav.style.display='none'; horizontal2.style.display='none'; left.style.display='none'; right.style.display='none'; footer.style.display='none'; box4.style.width='820px'; document.getElementById('popup-test').innerHTML= '<h3><a href="#">Close<\/a><\/h3>'+ '<h4><\/h4>'+ '<h3><a href="Punta.php" target="top"><\/a><\/h3>'; var anc=document.getElementById('popup-test').getElementsByTagName('a'); for(var c=0;c<anc.length;c++) { anc[c].onclick=function() { window.close(); return false; } } } } window.addEventListener? window.addEventListener('load',init,false): window.attachEvent('onload',init); })();