Tag: javascript

7735 How do I redirect to another webpage? 2009-02-02T12:54:16.867

7654 How do JavaScript closures work? 2008-09-21T14:12:07.003

7435 How to check whether a string contains a substring in JavaScript? 2009-11-24T13:04:29.157

6939 How do I check if an element is hidden in jQuery? 2008-10-07T13:03:18.057

6893 What does "use strict" do in JavaScript, and what is the reasoning behind it? 2009-08-26T16:10:13.827

6551 How do I remove a particular element from an array in JavaScript? 2011-04-23T22:17:18.487

6215 var functionName = function() {} vs function functionName() {} 2008-12-03T11:31:07.473

5673 Which equals operator (== vs ===) should be used in JavaScript comparisons? 2008-12-11T14:19:49.123

5173 How do I remove a property from a JavaScript object? 2008-10-16T10:57:45.830

4736 What is the most efficient way to deep clone an object in JavaScript? 2008-09-23T16:26:09.163

4560 How do I return the response from an asynchronous call? 2013-01-08T17:06:14.013

4523 "Thinking in AngularJS" if I have a jQuery background? 2013-02-21T04:09:56.063

4360 How do I include a JavaScript file in another JavaScript file? 2009-06-04T11:59:50.987

3966 For-each over an array in JavaScript? 2012-02-17T13:51:48.683

3744 Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? 2008-09-25T17:54:27.140

3713 Setting "checked" for a checkbox with jQuery? 2009-01-08T22:20:24.913

3615 Why does Google prepend while(1); to their JSON responses? 2010-04-19T18:00:09.750

3504 What's the difference between using "let" and "var" to declare a variable in JavaScript? 2009-04-17T20:09:26.777

3493 How do you get a timestamp in JavaScript? 2008-10-21T09:29:33.367

3460 How to validate an email address in JavaScript? 2008-09-05T16:10:11.093

3410 Create GUID / UUID in JavaScript? 2008-09-19T20:01:00.147

3397 How to replace all occurrences of a string in JavaScript 2009-07-17T17:53:46.750

3366 How do I check if an array includes an object in JavaScript? 2008-10-25T22:14:40.913

3132 How do I make the first letter of a string uppercase in JavaScript? 2009-06-22T08:25:31.840

2896 How to append something to an array? 2008-12-09T00:20:05.937

2806 What is the difference between call and apply? 2009-12-31T19:56:25.510

2788 How do I copy to the clipboard in JavaScript? 2008-12-30T13:09:05.777

2723 event.preventDefault() vs. return false 2009-08-31T11:58:31.807

2703 How can I get query string values in JavaScript? 2009-05-23T08:10:48.453

2675 How can I upload files asynchronously? 2008-10-03T10:22:17.347

2602 Get the current URL with JavaScript? 2009-06-23T19:26:45.823

2556 How do I correctly clone a JavaScript object? 2009-04-08T03:01:06.323

2550 Loop through an array in JavaScript 2010-06-10T00:04:27.170

2518 Is it possible to apply CSS to half of a character? 2014-05-09T16:16:57.337

2499 Detecting an undefined object property 2008-08-26T07:25:08.083

2498 What is the !! (not not) operator in JavaScript? 2009-04-24T08:13:58.470

2441 JavaScript closure inside loops – simple practical example 2009-04-15T06:06:20.460

2434 Is there an "exists" function for jQuery? 2008-08-27T19:49:41.107

2388 Change an element's class with JavaScript 2008-10-12T20:06:43.663

2381 How can I know which radio button is selected via jQuery? 2009-02-27T19:53:27.180

2342 Checking if a key exists in a JavaScript object? 2009-07-08T13:21:32.833

2301 Can (a== 1 && a ==2 && a==3) ever evaluate to true? 2018-01-15T20:20:47.787

2293 How do I loop through or enumerate a JavaScript object? 2009-03-26T06:01:47.873

2277 Check if object is an array? 2011-01-23T18:53:04.733

2257 How do you check for an empty string in JavaScript? 2008-09-30T17:17:45.273

2256 How to insert an item into an array at a specific index? 2009-02-25T14:29:30.877

2200 Encode URL in JavaScript? 2008-12-02T02:37:08.457

2200 How to decide when to use Node.js? 2011-02-21T05:20:51.360

2199 How do I empty an array in JavaScript? 2009-08-05T09:08:39.340

2193 Validate decimal numbers in JavaScript - IsNumeric() 2008-08-20T14:21:13.793

2159 Storing Objects in HTML5 localStorage 2010-01-06T04:05:51.397

2140 Add table row in jQuery 2008-10-04T21:33:10.247

2132 How can I refresh a page with jQuery? 2011-03-23T11:55:31.870

2117 How do I detect a click outside an element? 2008-09-30T13:17:12.340

2110 .prop() vs .attr() 2011-05-03T19:33:28.120

2100 Set a default parameter value for a JavaScript function 2009-05-21T20:07:17.740

2078 How to get the children of the $(this) selector? 2008-11-20T19:44:05.733

2061 Get selected text from a drop-down list (select box) using jQuery 2009-10-29T12:02:09.297

2051 How do I test for an empty JavaScript object? 2009-03-25T01:39:45.860

2032 Creating multiline strings in JavaScript 2009-04-30T02:11:55.560

1998 Sort array of objects by string property value 2009-07-15T03:17:47.440

1996 Round to at most 2 decimal places (only if necessary) 2012-08-06T17:17:48.293

1988 Disable/enable an input with jQuery? 2009-09-12T05:21:54.273

1985 How to check for "undefined" in JavaScript? 2010-08-02T17:53:29.070

1970 How can I convert a string to boolean in JavaScript? 2008-11-05T00:13:08.963

1967 How can I merge properties of two JavaScript objects dynamically? 2008-10-05T00:30:54.833

1955 jQuery scroll to element 2011-07-13T09:49:44.753

1922 Length of a JavaScript object 2008-08-07T19:42:21.060

1918 How do I pass command line arguments to a Node.js program? 2010-12-04T01:56:46.047

1900 How does JavaScript .prototype work? 2009-02-21T12:31:18.370

1894 Modify the URL without reloading the page 2009-05-05T10:54:05.763

1883 What is JSONP all about? 2010-01-14T20:53:48.287

1839 How does data binding work in AngularJS? 2012-03-13T10:16:37.290

1836 How can I select an element with multiple classes in jQuery? 2009-06-24T22:28:58.530

1797 How do I get the current date in JavaScript? 2009-10-07T11:39:02.730

1795 How can I pretty-print JSON using JavaScript? 2011-01-26T22:33:53.733

1776 What is the scope of variables in JavaScript? 2009-02-01T08:27:19.853

1766 What is the preferred syntax for defining enums in JavaScript? 2008-11-13T19:09:06.620

1749 When to use double or single quotes in JavaScript? 2008-10-28T10:34:35.097

1724 Is there a standard function to check for null, undefined, or blank variables in JavaScript? 2011-04-01T15:14:24.250

1703 $(document).ready equivalent without jQuery 2009-04-28T21:51:11.640

1703 How to determine if variable is 'undefined' or 'null'? 2010-04-15T18:12:16.507

1700 Get the size of the screen, current web page and browser window 2010-08-09T06:28:58.150

1693 Open a URL in a new tab (and not a new window) using JavaScript 2011-02-05T15:52:13.953

1679 Event binding on dynamically created elements? 2008-10-14T23:25:19.113

1676 Abort Ajax requests using jQuery 2009-01-15T12:45:18.527

1667 What is the JavaScript version of sleep()? 2009-06-04T14:41:10.240

1663 JavaScript equivalent to printf/String.Format 2009-03-04T12:53:02.017

1649 What is the difference between Bower and npm? 2013-09-05T16:53:19.613

1639 Get current URL with jQuery? 2009-01-02T06:42:54.400

1601 Iterate through object properties 2011-11-29T14:30:26.123

1595 Why is using "for...in" with array iteration a bad idea? 2009-02-01T09:46:38.510

1588 JavaScript chop/slice/trim off last character in string 2009-06-04T20:31:53.540

1588 What is the 'new' keyword in JavaScript? 2009-10-29T21:32:45.197

1588 How does Facebook disable the browser's integrated Developer Tools? 2014-02-11T03:42:08.540

1582 Generating random whole numbers in JavaScript in a specific range? 2009-10-06T20:05:41.100

1572 How to check if a string "StartsWith" another string? 2009-03-14T20:12:51.233

1559 How do you check if a variable is an array in JavaScript? 2009-04-20T09:02:59.553

1549 Parse JSON in JavaScript? 2011-02-08T16:34:03.600