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 8a30b88

Browse files
stop propoagtion
1 parent ed08890 commit 8a30b88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎Basic Introduction/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838

3939
document.body.addEventListener('click' , bodyClicked , true);
4040

41-
function btnClicked(){
41+
function btnClicked(event){
4242
console.log('btn clicked.....');
43+
event.stopPropagation();
4344
}
4445

4546
function divClicked(){

0 commit comments

Comments
(0)

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