確認請求(confirm,request)

iteye_15796發表於2008-12-07


<a id="newEvaluation" href="" target="mainFrame" onclick="newEvaluation()">建立新評估</a>





function newEvaluation()

{

if (confirm("是否新建評估?"))

{

document.all.newEvaluation.href="所要請求的URL地址"

}else{

document.all.newEvaluation.href=" URL地址"

}

}

相關文章