Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
How To Create a Contact Form with CSS

How To Create a Contact Form with CSS

agyanadda
You can create contact form using HTML, CSS and JavaScript. Click Here to Live check body {font-family: Arial, Helvetica, sans-serif;} * {box-sizing: border-box;} .open-button { background-color: #555; color:
How to create Comment Form using Javascript

How to create Comment Form using Javascript

agyanadda
Bootstrap Example var flag=true; function fcomment(){ var data="POST COMMENT"; document.getElementById('fid').innerHTML=data; if(flag){ document.getElementById("fid").innerHTML=data; flag=false; }else{ document.getElementById("fid").innerHTML=""; flag=true; } }
Validation  using Javascript Login Form

Validation using Javascript Login Form

agyanadda
How to validation using java script Validation Form using Javascript .error{ color: red; font-weight: 600; } function validationn(){ if(document.forms["frm"]["email"].value==""){ document.forms["frm"]["email"].focus(); document.getElementById("eml").innerHTML="* Enter your Email"; return false; }else{ document.getElementById("eml").innerHTML="";
How to create auto focus in JavaScript validation

How to create auto focus in JavaScript validation

agyanadda
function validatee(){ // 1st Method if(document.forms['frm']['nm'].value == ""){ alert( "Please provide your name!" ); document.forms['frm']['nm'].focus() ; return false; } // 2nd Method /* nmm=document.forms['frm']['nm']; if(nmm.value== ""){ alert( "Please
How to add,subtract by using function and Switch statement in Javascript

How to add,subtract by using function and Switch statement in Javascript

agyanadda
How to create addition, subtraction by using function and switch statement. alert("1. Addition "+"\n"+"2.Subtraction"); var n1,n2,res; var ch=parseInt(prompt("select your choice:")); // string (parseInt()=>convert into number) function inp(){ n1=parseInt(prompt("Enter
Click button copy to clipboard using jQuery

Click button copy to clipboard using jQuery

agyanadda
Bootstrap Example function copyToClipboard(element) { var $temp = $(""); $("body").append($temp); $temp.val($(element).text()).select(); document.execCommand("copy"); $temp.remove(); } Thanku for copy me Click to copy ME
Disable F5 Key (Button) and browser refresh using JavaScript and jQuery

Disable F5 Key (Button) and browser refresh using JavaScript and jQuery

agyanadda
==================================================================== ASCII key code of F5 is: 116. ==================================================================== Click this page to set focus. ==================================================================== window.onload = function () { document.onkeydown = function (e) { return (e.which
How to get data through form controll using javascript

How to get data through form controll using javascript

agyanadda
NAME: Email: Mobile: Gender: Male Female Other Course: BCA MCA PHD Country India Pakistan City India Pakistan Address function validateForm(){ var nm = document.forms["myForm"]["fname"].value; var eml = document.forms["myForm"]["eml"].value;
How to create Play-Pause ,Small, Big and Normal Video using javaScript

How to create Play-Pause ,Small, Big and Normal Video using javaScript

agyanadda
<!DOCTYPE html> <html> <head> <title>JavaScript Play video Example</title> </head> <body> <div style="margin:auto;width: 30%;text-align: center;"> <button type="button" onclick="playpause()">Play/Pause</button> <button type="button" onclick="big()">Big</button> <button type="button" onclick="small()">Small</button> <button type="button" onclick="normal()">Normal</button><br> <video width="400"