Skip to content

Commit a580ce8

Browse files
committed
Merge pull request jquery#316 from yukulele/patch-1
problem with nested quotes
2 parents a2336ae + e73ed11 commit a580ce8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

page/javascript-101/running-code.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ The last option is to use the event handler attributes of HTML elements. This me
3131

3232
```
3333
<!-- Inline code directly on HTML elements being clicked. -->
34-
<a href="javascript:alert(&#34;Hello World!&#34;);">Click Me!</a>
35-
<button onClick="alert(&#34;Good Bye World&#34;);">Click Me Too!</a>
34+
<a href="javascript:alert('Hello World');">Click Me!</a>
35+
<button onClick="alert('Good Bye World');">Click Me Too!</a>
3636
```
3737

3838
### Placement
@@ -72,4 +72,4 @@ It is a common pattern to move scripts to the bottom of the page, prior to the c
7272
</script>
7373
</body>
7474
</html>
75-
```
75+
```

0 commit comments

Comments
 (0)