Page 35 - JavaScript
P. 35
Introduction 478
Examples 478
Reflected Cross-site scripting (XSS) 478
headings 478
Mitigation: 479
Persistent Cross-site scripting (XSS) 479
Mitigation 480
Persistent Cross-site scripting from JavaScript string literals 480
Mitigation: 481
Why scripts from other people can harm your website and its visitors 481
Evaled JSON injection 481
Mitagation 482
Chapter 83: Selection API 483
Syntax 483
Parameters 483
Remarks 483
Examples 483
Deselect everything that is selected 483
Select the contents of an element 483
Get the text of the selection 484
Chapter 84: Server-sent events 485
Syntax 485
Examples 485
Setting up a basic event stream to the server 485
Closing an event stream 485
Binding event listeners to EventSource 486
Chapter 85: Set 487
Introduction 487
Syntax 487
Parameters 487
Remarks 487

