Fixing urls to start with 'https' (#1632)
Fixing urls to start with 'https'
This commit is contained in:
commit
2af74029e2
4 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Why in the code below `return false` doesn't work at all?
|
|||
}
|
||||
</script>
|
||||
|
||||
<a href="http://w3.org" onclick="handler()">the browser will go to w3.org</a>
|
||||
<a href="https://w3.org" onclick="handler()">the browser will go to w3.org</a>
|
||||
```
|
||||
|
||||
The browser follows the URL on click, but we don't want it.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<fieldset id="contents">
|
||||
<legend>#contents</legend>
|
||||
<p>
|
||||
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards?
|
||||
How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<fieldset id="contents">
|
||||
<legend>#contents</legend>
|
||||
<p>
|
||||
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards?
|
||||
How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue