Opera opens link under popup

Hi

I’ve just noticed that links supposed to open in a new page over my popups, in Opera they open under the popup…

http://pintotours.net/Europe/Spain/Barcelona.html

How can I solve this, please?

Thanks

Give the popup focus immediately after opening.

HTH,

:slight_smile:

Hi

How do you do that?

Let’s see your code that opens the popup. I can show you, there.

V/r,

:slight_smile:

Hi

Just open any popup in the page above, View page Source and click on /Pinto/scripts/popup-control2.js

I can’t. Your site is blocked on this network. :frowning:

What network?

My work network. I am a federal contractor. They block almost everything that isn’t mission critical.

V/r,

:slight_smile:

(function() {
   'use strict';

function init(){

   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 horizontal=document.getElementById('horizontal');
 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';
    horizontal.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);

})();

But I don’t want to put focus on the popup. It’s the way way round. I want the popup to be hidden under the the new page.

document.getElementById('name');

Just a suggestion: don’t use reserved words for names or IDs. name is a reserved word. (Or, at least it was; I assume it still is.)

Other than that, I’m not following your code. Is this what spawns the popup? Or is this part of the popup?

Whichever code creates and launches the popup, make sure you assign a variable to it (I guess newwindow???) and use that to put focus.

var newwindow = {code to create popup};
newwindow.focus();

HTH,

:slight_smile:

I want to hide the popup, not show it!

Sorry… obviously English is not your first language. I assumed based on your original post that you wanted the popups to appear OVER the browser. All you said was “in opera they open under the popup” and “how do I solve?”

So… can someone else jump in? I still don’t know what OP wants/needs.

V/r,

:slight_smile:

1 Like

Sorry Wolf, I no speak no ingilish!

THREAD CLOSED

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.