Skip to content
  • About
  • Computer Languages
  • Design & Illustration
  • Donate
  • Downloads
  • My Documents
  • Office
  • References
  • School Management System
  • Technology Basics
  • Utilities
  • Welcome to the official site of DW Faisalabad
Search for:
DW Faisalabad

DW Faisalabad

Skip to content
  • Languages
    • CSS
    • HTML
    • JavaScript
  • Office
    • Adobe Acrobat
    • Microsoft Office 2016
    • SPSS
    • Shortcut Keys
  • Design & Illustration
    • Adobe Illustrator
    • Adobe Photoshop
    • CorelDRAW
  • Technology
    • Computer
    • Microsoft Windows
    • Online Safety
  • School Management System
  • Utilities
  • Blog
  • YouTube

Tag: how to create login page with html css and javascript

JavaScript Validation API

Constraint Validation DOM Methods Property Description checkValidity() Returns true if an input element contains valid data. setCustomValidity() Sets the validationMessage property of an input element. If an input field contains invalid data, display a message: The checkValidity() Method <input id=”id1″ type=”number” min=”100″ max=”300″ required> <button onclick=”myFunction()”>OK</button><p id=”demo”></p> <script> function myFunction() { var inpObj = document.getElementById(“id1”); if (!inpObj.checkValidity()) { document.getElementById(“demo”).innerHTML = inpObj.validationMessage; } } </script> Try it […]

HTML <summary> Tag

Example Using the <summary> element: <details> <summary>Copyright 1999-2014.</summary> <p> – by Refsnes Data. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the company Refsnes Data.</p> </details> Try it Yourself » Definition and Usage The <summary> tag defines a visible heading for the <details> element. The heading can be clicked to view/hide […]