Web Front End Season 3 (JavaScript): 21: Chapter 7: JavaScriptWindow: 703-screen and location+704-history objects control web page forward and backward

content

First, the purpose

1. Think: learn front-end knowledge

2. Thinking: Take notes, next time you don't need to watch the video, just look at the notes to quickly recall.

2. Reference

1. GitHub URL of my own code

2. SIKI Academy: I refer to this video for practice

3.w3school official website: use it as a dictionary

4. Rookie Tutorial: Use as a Dictionary

5. Web Front End Season 1 (HTML): My own note-taking blog

6. Web Front End Season 2 (CSS): My own note blog

3. Attention

Action: 1: Success: 703-screen and location

1. Running result: success:

Action: 2: Success: 704 - The history object controls the web page forward and backward

1. Running result: success:


First, the purpose

1. Think: learn front-end knowledge

2. Thinking: Take notes, next time you don't need to watch the video, just look at the notes to quickly recall.

2. Reference

1. GitHub URL of my own code

​​​​​GitHub - xzy506670541/WebTest: Web Frontend for SIKI Academy

2. SIKI Academy: I refer to this video for practice

Login - SiKi Academy - Life is endless, learning is endless! Teacher siki's Unity3D professional video learning platform, thousands of real-time update courses for students to watch online, provide the latest, most complete and fastest video learning courses for domestic developers http://www.sikiedu.com/my/course /212

  1. I refer to this video for practice

3.w3school official website: use it as a dictionary

w3school online tutorials

4. Rookie Tutorial: Use as a Dictionary

Rookie Tutorial - Learning is not only technology, but also a dream!

5. Web Front End Season 1 (HTML): My own note-taking blog

Web Front End Season 1 (HTML): 1:101 - Why Learn Web Front End? +102 - What is HTML? +103-Installation tools and learning methods+04-Create the first web page file Action: Success 1. What is HTML? 1. Why learn HTML? 1. Applicable objects of this course? 1. Relationship between web front-end engineers and back-end 1. What development tools are used? 1. How to study? 1. Operation: The first webpage: 1. Purpose 1. 2. Reference 1. SIKI Academy Login - SiKi Academy - Life is endless, learning is endless! I refer to this video practice 1. Nodepad++ official website https: https://blog.csdn.net/qq_40544338/article/details/120907015

6. Web Front End Season 2 (CSS): My own note blog

Web Front End Season 2 (CSS): 1:101-What is CSS+102-Download and install HBuilder+103-What are div and span tags+104-The difference between block elements and inline elements+105-CSS basic syntax _Smart_zy Blog-CSDN Blog Directory 1. Purpose 1. Think: learn front-end knowledge 2. Think: take notes, you don't need to watch the video next time, just look at the notes to quickly recall. 2. Reference 1. GitHub URL of my own code 1. SIKI Academy: I refer to this video for practice 1. w3school official website: use it as a dictionary 1. Rookie tutorial: use it as a dictionary 3. Note 4. Operation: 1: Success: 101 - What is CSS? 1. Success: Understand what CSS is 4. Operation: 2:102-Download and install HBuilder1. Download: found that the official website does not have HBuilder (already the previous version), all are HBuilderX1. Create a project. https://blog. csdn.net/qq_40544338/article/details/120968455

3. Attention

Action: 1: Success: 703-screen and location

1. Running result: success:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>

		<script type="text/javascript">
			// 1.浏览器可用宽高
			// console.log(screen.availWidth);
			// console.log(screen.availHeight);
			
			// 2.网址信息
			// console.log(location.protocol);//返回 web 主机的域名
			// console.log(location.hostname);//返回当前页面的路径和文件名
			// console.log(location.port);//返回 web 主机的端口 (80 或 443
			// console.log(location.pathname);//返回所使用的 web 协议(http:// 或 https://)
			// console.log(location);
			
			// 3.修改链接地址,打开浏览器后会直接跳转
			location.assign("601-设置图片更换.html");
		</script>
	</head>
	<body>
	</body>
</html>

 

 

Action: 2: Success: 704 - The history object controls the web page forward and backward

1. Running result: success:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<script type="text/javascript">
			//历史记录:前进2步
			// history.go(2);
		</script>
	</head>
	<body>
		<a href="704-history对象控制网页前进和后退-b.html">下一个页面</a>
		<button type="button" onclick="history.back()">后退</button>
		<button type="button" onclick="history.forward()">前进</button>
		<button type="button" onclick="my_open()">打开</button>
	</body>
</html>

 

Guess you like

Origin blog.csdn.net/qq_40544338/article/details/121471511