<< < 3 4 5 6 7 8 9 10 > >>   Sort: Date

What is the difference between undefined value and null value?
What is the difference between undefined value and null value? Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null. typeof undefined variable or property returns undefined whereas typeof null value returns object
2011-01-18, 4041👍, 0💬

What’s a quick way to append a value to an array?
What’s a quick way to append a value to an array? arr[arr.length] = value;
2010-12-28, 4037👍, 0💬

How to delete an entry using JavaScript?
How to delete an entry using JavaScript? The "delete" operator removes an array element, but oddly does not change the size of the array. &lt;script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];document.write("Number of days:"+days...
2011-07-19, 4036👍, 0💬

What is a fixed-width table and its advantages?
What is a fixed-width table and its advantages? Fixed width tables are rendered by the browser based on the widths of the columns in the first row, resulting in a faster display in case of large tables. Use the CSS style table-layout:fixed to specify a fixed width table. If the table is not specifie...
2010-07-06, 4024👍, 0💬

What does the term sticky session mean in a web-farm scenario?
What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session? Sticky session refers to the feature of many commercial load balancing solutions for web-farms to route the requests for a particular sessi...
2011-01-04, 4019👍, 0💬

How to create a confirmation box?
How to create a confirmation box? confirm("Do you really want to launch the missile?");
2011-03-08, 4015👍, 0💬

Is a JavaScript script faster than an ASP script?
Is a JavaScript script faster than an ASP script? Yes. Since JavaScript is a client-side script it does not require the web server's help for its computation, so it is always faster than any server-side script like ASP, JSP, PHP, etc..
2010-08-31, 4003👍, 0💬

Name the numeric constants representing max, min values
Name the numeric constants representing max, min values Number.MAX_VALUE Number.MIN_VALUE
2010-12-14, 4002👍, 0💬

How to shift and unshift using JavaScript?
How to shift and unshift using JavaScript? &lt;script type="text/javascript"> var numbers = ["one", "two", "three", "four"]; numbers.unshift("zero"); document.write(" "+numbers.shift()); document.write(" "+numbers.shift()); document.write(" "+numbers.shift()); &lt;/script> This produces zero...
2011-08-02, 3993👍, 0💬

What boolean operators does JavaScript support?
What boolean operators does JavaScript support? &amp;&amp;, || and !
2010-09-28, 3991👍, 0💬

How do you create a new object in JavaScript?
How do you create a new object in JavaScript? var obj = new Object(); or var obj = {};
2010-12-21, 3982👍, 0💬

What and where are the best JavaScript resources on the Web?
What and where are the best JavaScript resources on the Web? The Web has several FAQ areas on JavaScript. The best place to start is the w3schools.com website. For interactive help with specific problems, nothing beats the primary JavaScript Usenet newsgroup, comp.lang.javascript. Depending on my wo...
2010-09-21, 3978👍, 0💬

How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improv
How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface? On their own, Web pages tend to be lifeless and flat unless you add animated images or more bandwidth-intensive content such as Java applets or other ...
2010-06-15, 3978👍, 0💬

Are Java and JavaScript the Same?
Are Java and JavaScript the Same? No. java and JavaScript are two different languages. Java is a powerful object - oriented programming language like C++ and C, whereas Javascript is a client-side scripting language.
2010-09-14, 3974👍, 0💬

How to set a HTML document's background color?
How to set a HTML document's background color? document.bgcolor property can be set to any appropriate color.
2010-07-27, 3925👍, 0💬

How to use "join()" to create a string from an array using JavaScript?
How to use "join()" to create a string from an array using JavaScript? "join" concatenates the array elements with a specified seperator between them. &lt;script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];document.write("days:"+d...
2011-07-26, 3924👍, 0💬

Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users?
Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users? Fragmentation of the installed base of browsers will only get worse. By definition, it can never improve unless absolutely everyone on the planet threw away their old browsers and upgraded to the late...
2010-08-03, 3924👍, 0💬

How can JavaScript make a Web site easier to use?
How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site? JavaScript's greatest potential gift to a Web site is that scripts can make the page more immediately interactive, that is, interactive without having ...
2010-06-08, 3913👍, 0💬

How to have the status line update when the mouse goes over a link?
How to have the status line update when the mouse goes over a link? &lt;a href="javascript.shtml" onmouseover="window.status='Hi There!';return true" onmouseout="window.status='';r eturntrue">Look at the Status bar&lt;/a> Look at the Status bar as your cursor goes over the link.
2011-03-01, 3909👍, 0💬

How to select an element by id and swapping an image?
How to select an element by id and swapping an image? ... &lt;script language="JavaScript" type="text/javascript" > function setBeerIcon() { var beerIcon = document.getElementById("beerI con");beerIcon.src = "images/"+getSelectValue("beer ")+".jpg";} &lt;/script> ... &lt;img border="0" s...
2011-01-11, 3908👍, 0💬

How do you target a specific frame from a hyperlink?
How do you target a specific frame from a hyperlink? Include the name of the frame in the target attribute of the hyperlink. &lt;a href=”mypage.htm” target=”BodyFrame”>>Next&l t;/a>
2010-07-06, 3900👍, 0💬

How to use strings as array indexes using JavaScript?
How to use strings as array indexes using JavaScript? Javascript does not have a true hashtable object, but through its wierdness, you can use the array as a hashtable. &lt;script type="text/javascript"> var days = ["Sunday","Monday","Tuesday"," Wednesday","Thursday","Friday","Saturday" ];for(va...
2011-07-19, 3895👍, 0💬

What is "this" keyword?
What is "this" keyword? It refers to the current object.
2010-12-28, 3890👍, 0💬

What is === operator?
What is === operator? ==== is strict equality operator, it returns true only when the two operands are having the same value without any type conversion.
2011-02-01, 3887👍, 0💬

<< < 3 4 5 6 7 8 9 10 > >>   Sort: Date