Some JavaScript functions and code snippets useful for Programmers and JS scripts.

Daily Test with Code Example

Which attribute is used in <img> tag for the address of the image?
href src rel
<img src="" width="191" height="63" alt="Courses-Web" />
Which CSS code hides the element on page?
display: none; display: inline; position: relative;
#id {
  display: none;
What instruction stops the execution of a while() or for() statement?
continue prompt() break
for(var i = 0; i< 8; i++) {
  if(i > 1) break;
Indicate the function that can create a constant.
define() include() defined()
define("CONSTANT_NAME", "value");
JavaScript Code Snippets

Last accessed pages

  1. JavaScript code and PHP (27332)
  2. AJAX Course, free Lessons (8800)
  3. HTML Course - Free Lessons (13451)
  4. The Stage, Panels and Tools in Flash (7258)
  5. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (99952)

Popular pages this month

  1. Making DIV Contents Scroll Horizontally, with multiple Div`s inside (2868)
  2. Contact page - CoursesWeb (2766)
  3. Tabs effect with CSS (2763)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (899)
  5. PHP getElementById and getElementsByTagName (795)