代码之家  ›  专栏  ›  技术社区  ›  Warrior

将参数传递给打开新窗口

php
  •  0
  • Warrior  · 技术社区  · 15 年前

    如何在呼叫时传递不同的值窗口打开方法值是窗体值。

    1 回复  |  直到 15 年前
        1
  •  1
  •   Extrakun    15 年前

    我假设您希望将值输出到JavaScript函数打开新窗口. 你可以呼出声音窗口打开以及标签之间的各种选项。像这样:

    // 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');";
    
    推荐文章