在cgic库下实现
1.刷新原页面,并3s后跳转
fprintf(cgiOut,"<meta http-equiv=\"Refresh\" content=\"3;URL=/index.html\">");
2.CGI上延迟5s跳转
fprintf(cgiOut, "<script>window.setTimeout(\"location.href = '../login.html'\", 5000);</script>\n");
3.跳转到上前一个页面,不刷新,利用JavaScript
fprintf(cgiOut,"%s","<script>window.setTimeout(\"location.href='javascript:window.history.back()'\",3000);</script>");
4.立刻跳转
fprintf(cgiOut, "<script>window.location.href = '../login.html';</script>\n");