Javascript Important tags taking value from HTML
document.getElementById(“divid”).innerHTML; document.getElementByClassName(“classname”); document.getElementById(“”).value; document.forms[“formname”][“inputtextname”].value;
Website Designing Blog
document.getElementById(“divid”).innerHTML; document.getElementByClassName(“classname”); document.getElementById(“”).value; document.forms[“formname”][“inputtextname”].value;
When we have to repeat anything or if we want to write counting up to 1 then 1000, then the loop is done. 1 So
Ternary Operator <script> var a = 100; var b; (a == 100)? b = “true” : b = “false”; document.write(b); </script> <script> function getFee(isMember)
Below are best website for downloading free images and graphics https://www.pexels.com/
SVG Animation on hover change color #Vector-box:hover { fill:#4d4d4d; }
(#) linking
Use below code for combining first name and last name. Code is = A1 & B1 For adding space in between name write below A1&”
Onclick Event <script> function myclick() { var x = document.getElementById(“msg”).value; document.getElementById(“demo”).innerHTML = x; } </script> Onclick Events Submit <script> function myclick(){ var x = document.getElementById(“name”).value;
<script> var x = “2”; var y = “2”; if (x <= y ){ window.alert(“value mached”); } else{ window.alert(“value does’t mach”); } </script>
Logical Operator are used for Checking more than one condition in a single time. Operator Name && Logical And || Logical OR ! Logical NOT