setTimeout to refresh frame
function ABC()
{
window.parent.mainFrame.location.reload();
}
<input type="submit" name="submitvalue" value="send" onclick="setTimeout('ABC()',2000)">
<input type="button" value="refresh" onclick="setTimeout('ABC()',2000)">
it only works in button type, the submit type is failed.
how can i do to refresh the frame after 2 second after submit? thanks a lot.

