PHP里面的一段代码:
<form action='/phpinfo.php' method='POST' target=window.open("http://<?php echo gethostbyname($_SERVER["SERVER_NAME"]);?>","","height=400, weight=300")> <input type='hidden' value=<?php echo $node->getId() ?> name='nodeIdinfo'> <input type="submit" value="AP信息" name='showNdinfo'> </form>
set了viewport?
$("form").click(function(){
window.open("page.html","","width=200,height=200")
})
$("form").click(function(){
window.open("page.html","","width=200,height=200")
})
window.open不放在target里。
这样就可以了
<form action='/phpinfo.php' method='POST' target="popwin"> <input type='hidden' value=<?php echo $node->getId() ?> name='nodeIdinfo'> <input type="submit" value="AP信息" name='showNdinfo' onclick="window.open('http://<?php echo gethostbyname($_SERVER["SERVER_NAME"]);?>','popwin','height=400, width=300')"></form>
window.open不放在target里。
这样就可以了
<form action='/phpinfo.php' method='POST' target="popwin"> <input type='hidden' value=<?php echo $node->getId() ?> name='nodeIdinfo'> <input type="submit" value="AP信息" name='showNdinfo' onclick="window.open('http://<?php echo gethostbyname($_SERVER["SERVER_NAME"]);?>','popwin','height=400, width=300')"></form>
$("form").click(function(){
window.open("page.html","","width=200,height=200")
})