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

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.
2008-12-30, 4271👍, 0💬

How to add new elements dynamically.
How to add new elements dynamically. &lt;html xmlns="http://www.w3.org/1999/ xhtml"xml:lang="en" lang="en"> &lt;head> &lt;title>t1&lt;/title >&lt;script type="text/javascript"> function addNode() { var newP = document.createElement("p"); var textNode = document.createTextNode(" I...
2008-12-23, 4207👍, 0💬

How to write messages to the screen without using "document.write()"?
How to write messages to the screen without using "document.write()"? Changing the contents of an element is a much better solution. When the method showStatus is invoked, it will change the content of the span. ... function showStatus(message) { var element = document.getElementById("mysta tus");el...
2008-12-23, 4399👍, 0💬

How to disable an HTML object
How to disable an HTML object document.getElementById("myObj ect").disabled= true;
2008-12-16, 4154👍, 0💬

How to find radio button selection when a form is submitted?
How to find radio button selection when a form is submitted? &lt;script type="text/javascript"> function findButton() { var myForm = document.forms.animalForm; var i; for (i=0;i&lt;myForm.marsupial .length;i++) { if (myForm.marsupial[i].checked) { break; } } alert("You selected \""+myForm.ma...
2008-12-16, 4193👍, 0💬

How to find the selected radio button immediately using the this variable?
How to find the selected radio button immediately using the 'this' variable? &lt;script> function favAnimal(button) { alert('You like '+button.value+'s.'); } &lt;/script> &lt;input type="radio" name="marsupial" value="kangaroo" onchange="favAnimal(this)">Kan garoo&lt;br />&lt;inp...
2008-12-09, 4132👍, 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.
2008-12-09, 4266👍, 0💬

What are undefined and undeclared variables?
What are undefined and undeclared variables? Undeclared variables are those that are not declared in the program (do not exist at all), trying to read their values gives runtime error. But if undeclared variables are assigned then implicit declaration is done . Undefined variables are those that are...
2008-12-02, 4284👍, 0💬

Does JavaScript have the concept level scope?
Does JavaScript have the concept level scope? No. JavaScript does not have block level scope, all the variables declared inside a function possess the same level of scope unlike c, c++, and java.
2008-12-02, 4205👍, 0💬

What is variable typing in JavaScript?
What is variable typing in JavaScript? It is perfectly legal to assign a number to a variable and then assign a string to the same variable as in the following example: i = 10; i = "string"; This is called variable typing
2008-11-25, 4363👍, 0💬

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
2008-11-25, 4205👍, 0💬

What does undefined value mean in JavaScript?
What does undefined value mean in JavaScript? Undefined value means the variable used in the code doesn't exist or is not assigned any value, or the property doesnt exist.
2008-11-18, 4570👍, 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...
2008-11-18, 4430👍, 0💬

To set all checkboxes to true using JavaScript?
To set all checkboxes to true using JavaScript? //select all input tags function SelectAll() { var checkboxes = document.getElementsByTagName( "input");for(i=0;i&lt;checkboxes.le ngth;i++){ if(checkboxes.item(i).attribut es["type"].value== "checkbox") { checkboxes.item(i).checked = true; } } }
2008-11-11, 4375👍, 0💬

You have an ASP.NET web application running on a web-farm ...
You have an ASP.NET web application running on a web-farm that does not use sticky sessions - so the requests for a session are not guaranteed to be served the same machine. Occasionally, the users get error message Validation of viewstate MAC failed. What could be one reason that is causing this er...
2008-11-11, 4357👍, 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...
2008-11-04, 4514👍, 0💬

What is "this" keyword?
What is "this" keyword? It refers to the current object.
2008-11-04, 4598👍, 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;
2008-10-28, 4367👍, 0💬

How do you assign object properties?
How do you assign object properties? obj["age"] = 17 or obj.age = 17.
2008-10-28, 4481👍, 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 = {};
2008-10-21, 4396👍, 0💬

What does JavaScript null mean?
What does JavaScript null mean? The null value is a unique value representing no value or no object. It implies no object, or null string, no valid boolean value, no number and no array object.
2008-10-21, 4372👍, 0💬

Name the numeric constants representing max, min values
Name the numeric constants representing max, min values Number.MAX_VALUE Number.MIN_VALUE
2008-10-14, 4183👍, 0💬

How to comment JavaScript code?
How to comment JavaScript code? Use // for line comments and /* */ for block comments
2008-10-14, 4292👍, 0💬

How to hide JavaScript code from old browsers that does not support JavaScript?
How to hide JavaScript code from old browsers that does not support JavaScript? Use the below specified style of comments: &lt;script language=javascript> &lt;!-- javascript code goes here // --&gt; &lt;/script> or Use the &lt;NOSCRIPT> and &lt;/NOSCRIPT> tags and code the di...
2008-10-07, 4332👍, 0💬

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