- Question: What is Disqus? It is comment hosting service for web sites and online communities. It provide Services so that you can add comment system in your website. Question: is Disqus multilingual? Yes, It is. Question: When...
- Question: What is timestamp? A timestamp is the current time of an event that is recorded by a computer. In JavaScript, it gives local time (computer ). Question: How do you get a timestamp in JavaScript? Date.now() Question: How do you get...
- Question: What is closures? Whenever you defined a the function within another function, the inner function has access to variables in the outer function. Following are Simple example of closure. function mainFunction(outerData) { var mainFuncData...
- In Every website, We have to include the JavaScript. We need to include multiple JavaScript file in single web page. It's always prefer to include the javascript at the bottom of the page so that loading of content remain fast. So we should add at the bottom...
- Question: How to set a default parameter value for a JavaScript function? /** Here email is parameter in which we have set the default value i.e email@domain.com **/ function function1(name, email) ...
- Step 1: Add Following javascript function in Web page. function selectAllData(id) { var obj = document.getElementById(id); var text_val=eval(obj); text_val.focus(); text_val.select(); if (!document.all) return; // if IE return; ...
- encodeURI: This javascript function is used to encode a URI (Uniform Resource Identifier). This function encode special characters except the following: , / ? : @ & = + $...
- e.preventDefault() will prevent the default event from occuring. Means If this method is called, the default action of the event will not be triggered. This method does not accept any arguments. Example: jQuery(document).ready(function(){ $('a.link').click(function (e) { ...
- In Javascript, call() and apply() are predefined methods. Both methods can be used to invoke a function & must have the owner object as first parameter. See More detail below: apply lets you invoke the function with arguments as an array. View Example: function myFunction1(a, b) { return a + b; ...
- Including a javascript file in another javascript file is common in web development. Because many times we include the javascript file at run time on the behalf of some conditions. So, we can achieve this using javascript as well as using jQuery. Method 1: Use...
- I want to get the values from the Query String (means from URL), values are dynamic but query string variable is constant. Suppose, I have following URL: http://www.example.com/country.php?id=10&c=country Now, I want to get the value of following query string. id //currently...
We are Web Technology Experts Team who provide you Important information on Web Development, Interview Questions and Answers, live project problem and their solution and online free tutorials.