Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

getting this to open in a popup window

echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br />");


this does not open up in the 700 x 500 window it is meant to.
0
roscoeh23
Asked:
roscoeh23
1 Solution
 
RoonaanCommented:
echo "\t\t\t\t<a href=\"#\" onclick=\"window.open('news/old_news_list.php?month=$j&amp;year=$i','','width=700,height=500');return false;\">$thisMonth</a><br />";

-r-
0
 
Ivo StoykovCommented:
Hi roscoeh23,

> echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,'\',\''width=700,height=500\'\)>$thisMonth</a><br
> />");

another backslash missed
try this:
echo("\t\t\t\t<a href=\"#\" onclick=window.open(\'news/old_news_list.php?month=$j&amp;year=$i,\'\',\''width=700,height=500\'\)>$thisMonth</a><br />");

Regards

!i!
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now