Dom scripting

Page 331

■ INDEX

style property, 152–160 getting styles from, 153–158 retrives styles set inline only, 157–158 setting styles with, 158–160 <style> tag, 35, 158 styleElementSiblings function, 173–174 styleHeaderSiblings function, 161, 163, 170–174 styleHeaderSiblings.js file, 163 styles folder, 157, 191, 227, 237 styles.css file, 157 submission, of forms, 271–276 submit button, 265 submitFormWithAjax function, 272, 274–275 submit.html file, 262–263, 271–273, 276 superscript variable, 142 syntax, of JavaScript, 9–17 arrays, 14–16 comments, 10 data types, 12–14 objects, 16–17 statements, 9 variables, 10–12

■T

table element, 63–64, 164, 166, 256–257, 260 tag attribute, 124 tag class, 285 target element, 110–111, 272 targetElement variable, 110 tel type, 222 temp_celsius variable, 26 template.html file, 229, 261–262 ternary operator, 84 testdiv element, 99, 102, 105–106 test.html file, 8, 95, 97, 99–103, 106 text nodes, of DOM, 34 text variable, 54, 84–85 textarea element, 265 this.href property, 63 title attribute, 42–43, 54–55, 124, 128–130, 137, 139 <title> element, 33 toLowerCase method, 242 top property, 180, 182–183, 193, 200

topics.gif image, 189, 192–193, 195 total variable, 27 txt variable, 103 txt1 variable, 105–106 txt2 variable, 105–106 txt3 variable, 105–106 typeof keyword, 152 type="text/javascript" attribute, 8 typography.css file, 127, 236–237, 260

■U

ul element, 33–34, 52 url type, 221 url variable, 140, 142, 272

■V

validateForm function, 269–270 validation, of forms, 267–270 value property, 265, 269 var keyword, 12, 26, 178 variables for image gallery example, 78 in JavaScript overview, 10–12 scope of, 26–27 visibility, of content, 124

■W

W3C (World Wide Web Consortium), 1 warning class, 65 What You See Is What You Get (WYSIWYG), 59 whichpic element, 92 while loop, in JavaScript, 22–23 Willison, Simon, 81 window.load event, 220 window.onload event, 135, 162 window.open( ) method, 62 World Wide Web Consortium (W3C), 1 WYSIWYG (What You See Is What You Get), 59

■X

X-Prototype-Version property, 294 X-Requested-With property, 294 XHTML, vs. HTML, 125–127

313


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