2010-09-20 241 views

回答

1

我假設您希望將值輸出到JavaScript函數window.open。你可以回顯window.open和標籤之間的各種選項。類似這樣的:

// untested code 
$options = "width=$width,height=$height"; 
$url="www.google.com"; 

// assuming you have echoed out the JavaScript language tags 
echo "window.open('$url', '$options');";