Toggle navigation
Toggle navigation
This project
Loading...
Sign in
성준영
/
webservice-practices
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
성준영
2017-04-18 01:25:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
08c5bea5e4d620c5ede0a20ff86ed8f1c80e4712
08c5bea5
1 parent
9fe223bc
practice_13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
practice_13/index.html
practice_13/test.png
practice_13/index.html
0 → 100644
View file @
08c5bea
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
<button
onclick=
"myFunction()"
>
Try it
</button>
<button
onclick=
"goLocation('naver')"
>
NAVER
</button>
<button
onclick=
"goLocation('daum')"
>
DAUM
</button>
<script>
document
.
write
(
"<div id='name'><a href='123'>link</a></div>"
);
var
x
=
document
.
getElementById
(
"name"
);
// alert(x.innerHTML);
x
.
innerHTML
=
"<a href='http://naver.com'>link</a>"
;
function
myFunction
()
{
var
myWindow
=
window
.
open
(
""
,
"_self"
,
""
);
myWindow
.
document
.
write
(
"<img width='500' height='300' src='test.png'/>"
);
}
function
goLocation
(
where
)
{
if
(
where
===
"naver"
)
{
location
.
assign
(
"http://naver.com"
);
}
else
if
(
where
===
"daum"
)
{
location
.
assign
(
"http://daum.net"
);
}
}
// var name = prompt("Enter Your Name", "Name");
// document.write("Your name is " + name + " .");
</script>
</body>
</html>
\ No newline at end of file
practice_13/test.png
0 → 100644
View file @
08c5bea
26.3 KB
Please
register
or
login
to post a comment