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 cc6d1e0

Browse files
pop up window in js
1 parent 7c38ab3 commit cc6d1e0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎Basic Introduction/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Document</title>
8-
9-
<style>
10-
11-
body{
12-
background-color: red;
13-
}
14-
15-
</style>
168
</head>
179
<body>
1810

11+
<button id="btn1">Google</button>
12+
1913
<script>
2014

21-
console.log(innerHeight);
22-
console.log(innerWidth);
15+
let btn1 = document.getElementById('btn1');
16+
let url = "https://www.google.com";
17+
let name = "google";
18+
let features = "height=500 , width = 500";
19+
20+
window.open(url , name , features);
21+
2322
</script>
23+
2424
</body>
2525
</html>

0 commit comments

Comments
(0)

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