zonkd Posted April 19, 2008 Share Posted April 19, 2008 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!!! Quote Link to comment https://forums.phpfreaks.com/topic/101840-linking-from-a-popup/ Share on other sites More sharing options...
wildteen88 Posted April 19, 2008 Share Posted April 19, 2008 If you want to open the blog page on the page that popup displayed then target="parent" (or is it taget="_partent") should work. Quote Link to comment https://forums.phpfreaks.com/topic/101840-linking-from-a-popup/#findComment-521172 Share on other sites More sharing options...
zonkd Posted April 19, 2008 Author Share Posted April 19, 2008 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.) Quote Link to comment https://forums.phpfreaks.com/topic/101840-linking-from-a-popup/#findComment-521184 Share on other sites More sharing options...
keyurshah Posted April 21, 2008 Share Posted April 21, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/101840-linking-from-a-popup/#findComment-522698 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.