Page 1 of 1

make the link open in a pop-up

Posted: Fri Mar 23, 2007 5:15 pm
by melindaSA
I hope someone can help me with this:

I would like to have the link open in a pop-up (without top menu), the link is stored in the database. Here is what works to open in a new browser window using _blank, but the top menu is still showing:

Code: Select all

if ($courses['course_outline']) {
    echo '<p><span class="inlineGray">Course Outline:&nbsp;&nbsp;</span><a href="'.$courses['course_outline'].'" target="_blank">Click Here</a></p>';
    }
I have tried to do the following, which does not work:

Code: Select all

<a href="javascript:void(0);" onclick="window.open('.$courses['course_outline'].','PageName','location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=630,height=400')">
Any help would be appreciated!!

Posted: Fri Mar 23, 2007 6:06 pm
by tecktalkcm0391
try these for the options:

Code: Select all

toolbar=no,location=no,directories=no,
status=no,menubar=no,scrollbars=no,resizable=no
What are you using IE7 Sometimes will just show the URL of the script and some stuff (for me). It's kinda weird.

Posted: Mon Mar 26, 2007 7:11 am
by melindaSA
Hi techtalk, still cannot get it to work! Thank you for your help!

Does anyone else know how to fix this?

Posted: Mon Mar 26, 2007 8:29 am
by superdezign

Code: Select all

<a href="$courses['course_outline']" onclick="window.open('this.href','PageName','location=0,status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,width=630,height=400'); return false;">
This should also just show your url in the status bar when they hover over it.