0
当我调用window.open方法时,如何传递不同的值。值是表单值。将参数传递给window.open
当我调用window.open方法时,如何传递不同的值。值是表单值。将参数传递给window.open
我假设您希望将值输出到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');";