Tag Archives: Function

JavaScript Reference

JavaScript Cheat Sheet: http://overapi.com/javascript JavaScript Snippet: http://www.javascriptkit.com/cutpastejava.shtml Namespaced Template: https://css-tricks.com/snippets/javascript/namespaced-javascript-template/ 2 Types:  1. Primitive – numbers, strings, booleans, null, undefined 2. Object Truthy Value: everything with real value example Falsy values: 0, -0, NaN, “”, false, null, undefined Undefined – variable has not yet … Continue reading

Posted in JavaScript | Tagged , , , , , , , , , , , , , ,

Content

Find the character’s index position: charAt() Make Text Appear / Change Text: innerHTML / example Make Element Appear: style.display & style.visibility Make Element Disappear: style.display & style.visibility Copy Content: innerHTML Delete Content: innerHTML Add an Element: appendChild() + insertBefore Remove an Element: removeChild() or removeChild() Toggle Show/Hide Element: if-else Change CSS Style: style.prop / style properties … Continue reading

Posted in JavaScript | Tagged , , , , , , , , , , , , , , , , , , , , , , , , ,