Javascript page jump code: 1. Button type, the code is []; 3. Open a new window, the code is [
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='http://www.w3school.com.cn/'">
Link type:
<a href="javascript:history.go(-1)">返回上一步</a>
Open new window:
<a href="javascript:" onClick="window.open('http://www.w3school.com.cn/','','height=500,width=611,scrollbars=yes,status=yes')">w3school</a>
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!