Home > Backend Development > PHP Tutorial > PHP和JS跳转

PHP和JS跳转

WBOY
Release: 2016-06-23 14:32:59
Original
1338 people have browsed it

在PHP中可以利用

header('Location: taget.html');

?>

在JS中则用

document.location="target.html";

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

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template