Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2017-1-WebServiceProgramming
/
Practice-Materials
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-04 14:57:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
87da2565aa34509c89d051d3d91cd3f8edaa4973
87da2565
1 parent
9d0a83ee
수정
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
12 deletions
10_JavaScriptForWebBrowser/01.original.html
10_JavaScriptForWebBrowser/05 UserInput.html
10_JavaScriptForWebBrowser/alert.js
10_JavaScriptForWebBrowser/01.original.html
View file @
87da256
<html>
<head>
<script
type=
"text/javascript"
>
function
message
(){
alert
(
"This alert box was called with the onload event"
);
}
</script>
</head>
<body
onload=
"message()"
>
<script
type=
"text/javascript"
>
document
.
write
(
"This message is written by JavaScript"
);
</script>
...
...
10_JavaScriptForWebBrowser/05 UserInput.html
0 → 100644
View file @
87da256
<html>
<head>
</head>
<body>
<script
type=
"text/javascript"
>
var
name
=
prompt
(
"Enter the name"
);
document
.
write
(
name
);
</script>
</body>
</html>
10_JavaScriptForWebBrowser/alert.js
View file @
87da256
//window
객체는 window.
생략 가능
alert
(
"test"
);
//
메시지
창 띄움
//window
객체는 window. 생략 가능
alert
(
"test"
);
//
메시지 창 띄움
window
.
open
(
''
,
''
,
'width=200,height=100'
)
//
새창
띄우기
window
.
open
(
''
,
''
,
'width=200,height=100'
)
//
새창 띄우기
if
(
confirm
(
"Are you sure?"
))
{
// Yes/No
를 묻는 다이얼로그 창
띄움. Yes일 때만 true
// Yes/No
를 묻는 다이얼로그 창 띄움. Yes일 때만
true
}
var
name
=
prompt
(
"Enter name"
);
// 사용자의 입력 받는 창 띄움
var
name
=
prompt
(
"Enter name"
);
// 사용자의 입력 받는 창 띄움
...
...
Please
register
or
login
to post a comment