PHP和JS跳转

在PHP中可以利用

<?php

header('Location: taget.html');

?>

在JS中则用

document.location="target.html";

当然.也可以在PHP中调用JS语句

记得利用转义符就好了~.

posted on 2011-08-07 11:28  fedition  阅读(1327)  评论(0编辑  收藏  举报

导航