A href在新窗口中打开echo


A href With echo open in a new window

我想在一个新窗口上打开这个链接:以下内容正确吗?

<a href="<?php echo "$link"; ?><?php echo $userRow['user_wallet']; ?> " target="_blank">Check Your Adress</a>

我只是找到在新页面中打开链接的方法代码是

<a target = '_blank' href="<?php echo "$link"; ?><?php echo $userRow['user_wallet']; ?>" >Check Your Adress</a>

使用javascript的window.open()来实现这一点。

<a onclick="window.open(document.URL, '_blank', 'location=yes,height=700,width=550,scrollbars=yes,status=yes');">Open In New Window</a>

这应该对你有帮助。