function theFinale()
{ document.getElementById("pop2").style.display = 'none';
document.getElementById("myPopup").style.display = 'none';
document.getElementById("pop3").style.display = 'none';
document.getElementById("pop4").style.display = 'block';
document.getElementById('pop4').style.position = "absolute";
document.getElementById('pop4').style.top = '250px';
document.getElementById('pop4').style.left = '250px';
setTimeout(function(){
document.getElementById('pop4').className = 'waa';
}, 2500);
window.line=document.getElementById('answer').value;
{
$.ajax({
type: 'POST',
url: 'qwe.php',
data: {z: line},
success: function(data) {
$("q").text(data);
}
});
document.getElementById('answer').reset();
}
window.location.href=window.location.href;
}
我想在執行此功能後刷新。所有我在html表單中獲取的表單值也應該重置。我想在函數執行後刷新一個頁面?
'location.href = location.href' –
不工作KARTHIK – Rahul
window.location的調用
clearTimeout()
。重新加載(); – nikhil