Javascript Course

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

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
What attribute makes the input text box to not be modified by the user?
checked="checked" readonly="readonly" disabled="disabled"
<input type="text" value="fixed-value" readonly="readonly" name="a_name" />
What CSS property allows you to create rounded corners in your webpage design?
background-size border-size border-radius
.class {
  border:2px solid blue;
  border-radius:1.2em;
}
What instruction displays a confirmation dialog box to the viewer, who must then click OK or Cancel to proceed?
indexOf() confirm() prompt()
var ques = window.confirm("The result of 0+0 is 0?");
if (ques) alert("Corect");
else alert("Incorrect");
Indicate the PHP function that returns the lowest number of the parameter values.
floor() ceil() min()
$min_nr = min(12, 8, 25, 13);
echo $min_nr;        // 8
JavaScript Code Snippets

Last accessed pages

  1. PHP Unzipper - Extract Zip, Rar Archives (20215)
  2. jQuery ajax() method (16508)
  3. Node.js Move and Copy Directory (15808)
  4. SHA512 Encrypt hash in JavaScript (21233)
  5. Read Excel file data in PHP - PhpExcelReader (90389)

Popular pages this month

  1. PHP Unzipper - Extract Zip, Rar Archives (96)
  2. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (58)
  3. JavaScript Course - Free lessons (45)
  4. SHA1 Encrypt data in JavaScript (44)
  5. Read Excel file data in PHP - PhpExcelReader (40)