Skip to content

Commit fcf12e4

Browse files
authored
Update solution.md
1 parent 4355972 commit fcf12e4

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/2-events/04-default-browser-action/1-why-return-false-fails

1 file changed

+2
-2
lines changed

2-ui/2-events/04-default-browser-action/1-why-return-false-fails/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The fix is simple:
2020
}
2121
</script>
2222

23-
<a href="http://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
23+
<a href="https://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
2424
```
2525

2626
Also we can use `event.preventDefault()`, like this:
@@ -35,5 +35,5 @@ Also we can use `event.preventDefault()`, like this:
3535
*/!*
3636
</script>
3737

38-
<a href="http://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
38+
<a href="https://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
3939
```

0 commit comments

Comments
 (0)