点击按钮在当前页面打开目标内容

目标参数:onclick="location.href=' '"

<input type="button" onclick="location.href='./_myPage.php'" value="打开页面">

点击按钮在新的页面打开目标内容

目标参数:onclick="window.open(' ')"

<input type="button" onclick="window.open('./_newPage.php')" value="打开页面">

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注