Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6bfaec4

Browse files
location object in js
1 parent c4b4ced commit 6bfaec4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎Basic Introduction/index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111

1212
<script>
1313

14-
let stopTime = setInterval(myFunction , 2000);
14+
console.log(location.href);
15+
console.log(location.pathname);
16+
console.log(location.port);
1517

16-
function myFunction(){
17-
console.log('please the subscribe...')
18-
}
19-
20-
clearInterval(stopTime);
2118
</script>
2219
</body>
2320
</html>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /