Javascript pocket reference 3rd edition v413hav

Page 274

Range() constructor, 136–140 range() function, 136 reading cookies, 249 readyState property, XMLHttpRequest object, 229, 231 readystatechange events, 208, 229 real values, 7 reduce() method, 105 reduceRight() method, 105 RegExp() function, 15, 77, 149, 159 registering event handlers, 215– 218 regular expressions, 149 alternation, grouping, and references, 154 character classes, 152 describing patterns with, 149 flags, 157 pattern-matching with, 158– 162 repetition in, 152 specifying match position, 156 relatedTarget property, event object, 210 relationships between frames, 173 reload() method, 167 remove() method, 200 removeAttribute() method, 192 removeChild() method, 196 removeEventListener() method, 218 removeItem() method, 243 repetition, 152 replace() method, 12, 158, 160 replaceChild() method, 196 reserved words, 2, 191 reset events, 208 reset() function, 127 response body, 229 response headers, 229

262 | Index

responseText property, XMLHttpRequest object, 229, 232 return keyword, 3, 119 return statement, 27, 50, 66 returning a value, 23, 111, 220 reverse() method, 98 rotation property, event object, 214 round property, Math object, 7 rounding, 9

S Safari, 214 same-origin policy, 176 scale property, event object, 214 scope, 240, 246 scope of a variable, 21 scope of event handlers, 219 screen information, 169 screen property, Window object, 169, 171 <script> element, 163, 177, 225, 232 scroll offsets, 202 scrollBy() method, 203 scrolling, 201–204 scrollIntoView() method, 204 scrollTo() method, 203 seal() function, 91 search property, Location object, 167 search() method, 158 secure attribute, 247 security, 239 security and scripts, 236 selecting elements by CSS class, 186 selecting elements by CSS selectors, 187 selecting elements by ID, 182 selecting elements by name, 183 selecting elements by type, 184 selectors, CSS, 187 semicolon (;), 3, 248


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.