是否可以在Javascript函数下调用php页面? 我有一个javascript函数,我想打电话给PHP页面,如果有人按OKK在Javascript函数下调用php页面
这里是我到目前为止的代码
function show_confirm()
{
var r=confirm("Do You Really want to Refund money! Press ok to Continue ");
if (r==true)
{
alert("You pressed OK!");
return true;
}
else
{
alert("You pressed Cancel!");
}
}
,现在在这里使用这个js函数IM
<td align="center"><input name="Refund" onclick="show_confirm()" type="submit" value="Refund" /></td>
我想要如果用户按okk然后call other php page
...
如果用户按下ok按钮,您是否将用户重定向到另一个页面? –
@Dongsheng Cai :) ya – John
你想重定向到该页面或从中获取数据? – mithunsatheesh