경고창에서 history.back 추가

This commit is contained in:
gnuboard
2013-04-22 19:04:31 +09:00
parent 6708876bcb
commit 1e0a649d0e

View File

@ -42,7 +42,12 @@ if($error) {
<script>
alert("<? echo strip_tags($msg); ?>");
//document.location.href = "<? echo $url; ?>";
<? if ($url) { ?>
document.location.replace("<? echo $url; ?>");
<? } else { ?>
alert('history.back();');
history.back();
<?}?>
</script>
<noscript>