JavaScript Examples

Functions

  • Changing the Background Color - no function
  • Basic Function
  • Function with an argument
  • Function with argument used twice
  • Variable as an argument (user chooses color)
  • Pass two arguments to a function
  • Pass three (or more) arguments to a function
  • DHTML function

Return to Examples main menu