Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

setTimeout to refresh frame

there is a function to refresh the 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.
[483 byte] By [Tony WONG] at [2007-11-11 6:54:36]
# 1 Re: setTimeout to refresh frame
Try a Javascript forum. This one's for java programming.
Norm at 2007-11-11 22:40:04 >