Javascript Increment Function
<script> var i = 0; function buttonClick() { i++; document.getElementById(‘inc’).value = i; } </script> <button onclick=”buttonClick();”>Click Me</button> <input type=”text” id=”inc” value=”0″></input>
Website Designing Blog
<script> var i = 0; function buttonClick() { i++; document.getElementById(‘inc’).value = i; } </script> <button onclick=”buttonClick();”>Click Me</button> <input type=”text” id=”inc” value=”0″></input>
AJAX The HTTP method to use for the request (e.g. “POST”, “GET”, “PUT”). $.ajax() can be used to send http GET, POST, PUT, DELETE etc. request. It
$( document ).ready() block. $( document ).ready(function() { console.log( “ready!” ); }); <div id=”demo”></div> <script> $(‘p’).click(function(){ document.getElementById(“demo”).innerHTML = “Hi this is new jquery testing”; });
The lifecycle of an HTML page has three important events: DOMContentLoaded – the browser fully loaded HTML, and the DOM tree is built, but external resources
Writing array code: <script> var x =[23, 34, 43, 44, 43]; for (var i = 0; i < 4; i++) document.write(x[i]); </script> var
Javascript is a event based Programming Language Javascript Events: Click Double Click Right Click Mouse Hover Mouse Out Drag Drop Key Press Key Up Load
For Writing code in wordpress use <pre> </pre> Teg Write your Javascript code in between pre teg <form action=”https://www.google.com/search” class=”searchform” method=”get” name=”searchform” target=”_blank”> <input name=”sitesearch”
For giving managing rights to the advertising company follow following steps: Go to facebook business page. Go to Page settings 3. Then go to the
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