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

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, 3176👍, 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; } } }
2011-01-11, 3112👍, 0💬

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
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...
2011-01-04, 3107👍, 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, 3249👍, 0💬

What is "this" keyword?
What is "this" keyword? It refers to the current object.
2010-12-28, 3156👍, 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, 3228👍, 0💬

How do you assign object properties?
How do you assign object properties? obj["age"] = 17 or obj.age = 17.
2010-12-21, 2951👍, 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, 3191👍, 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.
2010-12-14, 3230👍, 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, 3205👍, 0💬

How to comment JavaScript code?
How to comment JavaScript code? Use // for line comments and /* */ for block comments
2010-12-07, 3080👍, 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...
2010-12-07, 3116👍, 0💬

How to put a "close window" link on a page?
How to put a "close window" link on a page? &lt;a href='javascript:window.close( )'class='mainnav'> Close &lt;/a>
2010-11-30, 3211👍, 0💬

What looping structures are there in JavaScript?
What looping structures are there in JavaScript? for, while, do-while loops, but no foreach.
2010-11-30, 3480👍, 0💬

How to Accessing HTML Elements using javascript?
How to Accessing HTML Elements using javascript? To do something interesting with HTML elements, we must first be able to uniquely identify which element we want. In the example below: &lt;body> &lt;form action=""> &lt;input type="button" id="useless" name="mybutton" value="doNothing" />...
2010-11-23, 3893👍, 0💬

What does the EnableViewStateMac setting in an aspx page do?
What does the EnableViewStateMac setting in an aspx page do? Setting EnableViewStateMac=true is a security measure that allows ASP.NET to ensure that the viewstate for a page has not been tampered with. If on Postback, the ASP.NET framework detects that there has been a change in the value of viewst...
2010-11-23, 3292👍, 0💬

How about 2+5+"8"?
How about 2+5+"8"? Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, itís concatenation, so 78 is the result.
2010-11-16, 3131👍, 0💬

What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?
What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst? The best sites are the ones that use JavaScript so transparently, that I'm not aware that there is any scripting on the page. The worst sites are those that try to impress me with how much scripting...
2010-11-09, 3106👍, 0💬

Taking a developerís perspective, do you think that that JavaScript is easy to learn and use?
Taking a developerís perspective, do you think that that JavaScript is easy to learn and use? I think JavaScript is easy to learn. One of the reasons JavaScript has the word "script" in it is that as a programming language, the vocabulary of the core language is compact compared to full-fledged prog...
2010-11-09, 3117👍, 0💬

Can JavaScript code be broken in different lines?
Can JavaScript code be broken in different lines? Breaking is possible within a string value by using a backslash \ at the end of the line. But this technique can not be used within any other values. For example: document.write("Hello \ world");
2010-11-02, 2972👍, 0💬

What is a prompt box?
What is a prompt box? A prompt box allows the user to enter input by providing a text box.
2010-11-02, 3063👍, 0💬

What is the difference between an alert box and a confirmation box?
What is the difference between an alert box and a confirmation box? An Alert box displays only one button which is the OK button, whereas a Confirm box displays two buttons namely OK and Cancel.
2010-10-26, 3723👍, 0💬

How to access an external JavaScript file that is stored externally and not embedded?
How to access an external JavaScript file that is stored externally and not embedded? This can be achieved by using the following tag between head tags or between body tags. &lt;script src="MyScripts.js">&lt;/sc ript>where MyScripts.js is the external JavaScript file to be accessed.
2010-10-26, 3088👍, 0💬

How to set the focus in an element using JavaScript?
How to set the focus in an element using JavaScript? Use the "focus()" method of the element object: &lt;script> function setFocus() { if(focusElement != null) { document.forms[0].elements["my elementname"].focus();} } &lt;/script>
2010-10-19, 3239👍, 0💬

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