Page 20 - JavaScript
P. 20
Examples 260
Introduction 260
Evaluation and Math 261
Evaluate a string of JavaScript statements 261
Chapter 42: Events 262
Examples 262
Page, DOM and Browser loading 262
Chapter 43: execCommand and contenteditable 263
Syntax 263
Parameters 263
Examples 264
Formatting 264
Listening to Changes of contenteditable 265
Getting started 265
Copy to clipboard from textarea using execCommand("copy") 266
Chapter 44: Fetch 268
Syntax 268
Parameters 268
Remarks 268
Examples 269
GlobalFetch 269
Set Request Headers 269
POST Data 269
Send cookies 269
Getting JSON data 270
Using Fetch to Display Questions from the Stack Overflow API 270
Chapter 45: File API, Blobs and FileReaders 271
Syntax 271
Parameters 271
Remarks 271
Examples 271
Read file as string 271

