Javascript 如何从jquery中的警报弹出窗口重定向到新页面?
我有一个单选按钮组,由三个单选按钮组成,它们的名称相同,但ID不同,如下所示:Javascript 如何从jquery中的警报弹出窗口重定向到新页面?,javascript,php,jquery,html,Javascript,Php,Jquery,Html,我有一个单选按钮组,由三个单选按钮组成,它们的名称相同,但ID不同,如下所示: <p class="custom-form"> <input type="radio" name="generate_paper" id="generate_paper_manual" value="manual" checked="checked" onChange="change_paper_generate_type();" /> <label for="gener
<p class="custom-form">
<input type="radio" name="generate_paper" id="generate_paper_manual" value="manual" checked="checked" onChange="change_paper_generate_type();" /> <label for="generate_paper_manual">Manual</label>
<input type="radio" name="generate_paper" id="generate_paper_auto" value="auto" onChange="change_paper_generate_type();" /> <label for="generate_paper_auto">Auto Generate</label>
<input type="radio" name="generate_paper" id="generate_own_paper" value="own"/> <label for="generate_paper_own">Own Paper</label>
</p>
手册
自动生成
自有报纸
现在我想显示一条确认弹出消息“您想生成自己的测试问题吗?”和“是/否”按钮。
如果用户单击“是”按钮,则页面应重定向至URL“/eprome/entprm/web/control/modules/users/view_users.php”。
如果用户单击“否”,则打开的弹出窗口应关闭。
在这方面有人能帮我吗?提前感谢。更新后,请尝试:
if (confirm("Do you want to generate own test questions ?"))
document.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
函数名更新时出错,请尝试:
if (confirm("Do you want to generate own test questions ?"))
document.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
函数名更新时出错,请尝试:
if (confirm("Do you want to generate own test questions ?"))
document.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
函数名更新时出错,请尝试:
if (confirm("Do you want to generate own test questions ?"))
document.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
我对函数名有错误使用:
result=window.confirm(消息)代码>
消息
是要在对话框中显示的可选字符串
result
是一个布尔值,指示选择了OK还是Cancel(true表示OK)
使用:
result=window.confirm(消息)代码>
消息
是要在对话框中显示的可选字符串
result
是一个布尔值,指示选择了OK还是Cancel(true表示OK)
使用:
result=window.confirm(消息)代码>
消息
是要在对话框中显示的可选字符串
result
是一个布尔值,指示选择了OK还是Cancel(true表示OK)
使用:
result=window.confirm(消息)代码>
消息
是要在对话框中显示的可选字符串
result
是一个布尔值,指示选择了OK还是Cancel(true表示OK)
您可以使用(window.confirm)或(如果愿意)其他基于DOM的对话
要更改url,可以设置window.location.href:
window.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
您可以使用(window.confirm)或(如果愿意)其他基于DOM的对话
要更改url,可以设置window.location.href:
window.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
您可以使用(window.confirm)或(如果愿意)其他基于DOM的对话
要更改url,可以设置window.location.href:
window.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
您可以使用(window.confirm)或(如果愿意)其他基于DOM的对话
要更改url,可以设置window.location.href:
window.location.href = "/eprime/entprm/web/control/modules/users/view_users.php";
使用“确认为”对话框。如果返回true,则重定向到所需页面
if(confirm("YOUR QUESTION?"))
{
document.location.href="URL OF PAGE";
}
使用“确认为”对话框。如果返回true,则重定向到所需页面
if(confirm("YOUR QUESTION?"))
{
document.location.href="URL OF PAGE";
}
使用“确认为”对话框。如果返回true,则重定向到所需页面
if(confirm("YOUR QUESTION?"))
{
document.location.href="URL OF PAGE";
}
使用“确认为”对话框。如果返回true,则重定向到所需页面
if(confirm("YOUR QUESTION?"))
{
document.location.href="URL OF PAGE";
}
现在我想在什么时候显示确认弹出消息?好的,现在你想这样做,但是你想什么时候显示确认消息?现在我想什么时候显示确认弹出消息?好的,现在你想这样做,但是你想什么时候显示确认消息?现在我想什么时候显示确认弹出消息?好的,现在你想这样做,但是你想什么时候显示确认消息?现在我想什么时候显示确认弹出消息?好的,现在您想这样做,但是您想什么时候显示确认消息?提示符
不是他想要的。它是用来写自由文本的,不是“是/否”对话框。prompt
不是他想要的。它是用来写自由文本的,不是“是/否”对话框。prompt
不是他想要的。它是用来写自由文本的,不是“是/否”对话框。prompt
不是他想要的。它用于编写自由文本,而不是“是/否”对话框。