Javascript Basics (1-8)

  1. A javascript called by a link
    <a href="javascript:rollon()">
  2. Pop an alert with
    window.alert()
  3. Find an object someText and change a style to it.
    function changeBackground(){ document.getElementById("someText").style.backgroundColor = "blue"}
  4. difference between comparing and assigning
    • compare is ==
    • assign is =
  5. alter some specific style of the element "bob"
    var someText = document.getElementById("bob").style.top
Author
dalbabes
ID
59642
Card Set
Javascript Basics (1-8)
Description
javascript
Updated