Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to delete an entry using JavaScript?
How to delete an entry using JavaScript?
✍: Guest
The "delete" operator removes an array element, but oddly does not change the size of the array.
<script type="text/javascript"> var days = ["Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"]; document.write("Number of days:"+days.length); delete days[4]; document.write("<br />Number of days:"+days.length); </script>
This produces
Number of days:7
Number of days:7
2011-07-19, 3455👍, 0💬
Popular Posts:
Is There Any XSD File to Validate Atom Feed Files? - RSS FAQs - Atom Feed Introduction and File Gene...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
What's wrong with this initialization? char *p = malloc(10); My compiler is complaining about an ``i...
Can you explain Forms authentication in detail ? In old ASP if you where said to create a login page...
What is the difference between delegate and events? ã Actually events use delegates in bottom. But ...