Update solution.md

This commit is contained in:
Ashutosh Chauhan 2019-11-26 19:27:23 +05:30 committed by GitHub
parent 43559725ce
commit fcf12e4b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ The fix is simple:
}
</script>
<a href="http://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
<a href="https://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
```
Also we can use `event.preventDefault()`, like this:
@ -35,5 +35,5 @@ Also we can use `event.preventDefault()`, like this:
*/!*
</script>
<a href="http://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
<a href="https://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
```