Jump to content

Linking from a popup


zonkd

Recommended Posts

A popup shows the latest news.

 

I want to link to a blog from the popup. But the link brings the blog page into the same size as the popup.

 

target="_blank" doesn't help.

 

I've tried by having a separate page that is a sort of stepping stone to the blog. But this go-between page adopts the size of the popup too.

 

I've tried various javascripts, but they still allow the blog page to stick to the popup size.

 

Fortunately, there's always suicide. However, before that, I'm trying the excellent gurus of phpfreaks. Help, please!!!

Link to comment
Share on other sites

Cheers, wildteen88, but sadly it doesn't. The blog webpage still insists on squeezing into the popup. But there has to be a way - lots of advertising popup direct to urls in normal page sizes. (Sorry about offering this in the wrong spot. Thanks for moving it over.)

Link to comment
Share on other sites

Hi Zonkd,

 

This probably can be done by a small javascript written in your pop up page. Something like:

function openNew(){

var win=null;

win=window.open("http://www.yahoo.com","mywin","",true);

window.close();

}

</script>

 

<a href="javascript:openNew()">Click here</a>

 

win=window.open("http://www.yahoo.com","mywin","",true); ==> will open yahoo.com in a new window.

window.close(); ==> Will simultaneously close the popup after opening yahoo.com in a new window.

 

 

Please note that this works well in IE and Moz FF.

(In Moz FF provided the user has selected the option of opening links in new window rather than a new tab)

 

Hope that I am helpful.

 

Regards,

Keyur

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.