Home > Web Front-end > JS Tutorial > body text

What are the javascript page jump codes?

coldplay.xixi
Release: 2023-01-05 16:13:22
Original
3034 people have browsed it

Javascript page jump code: 1. Button type, the code is []; 3. Open a new window, the code is [

What are the javascript page jump codes?

The operating environment of this tutorial: Windows 7 system, JavaScript version 1.8.5, DELL G3 computer.

Javascript page jump code:

Button type:

 <input name="pclog" type="button" value="GO" onClick="location.href=&#39;http://www.w3school.com.cn/&#39;">
Copy after login

Link type:

<a href="javascript:history.go(-1)">返回上一步</a>
Copy after login

Open new window:

 <a href="javascript:" onClick="window.open(&#39;http://www.w3school.com.cn/&#39;,&#39;&#39;,&#39;height=500,width=611,scrollbars=yes,status=yes&#39;)">w3school</a>
Copy after login

Related free learning recommendations: javascript video tutorial

The above is the detailed content of What are the javascript page jump codes?. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!