JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).
What's the simplest, library-free code for implementing array intersections in javascript? I want to writ
What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard
Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) rende
What is the reason browsers do not correctly recognize: <script src="foobar.js" /> <!-- self-closing
I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to
Is there a way I can modify the URL of the current page without reloading the page? I would like to access th
I'd like to store a JavaScript object in HTML5 localStorage, but my object is apparently being converted
Usually I use $("#id").val() to return the value of the selected option, but this time it doesn't work. T
All right, say I have this: <select id='list'> <option value='1'>Option A
I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function.
I'm loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any wa
How do I set and unset a cookie using jQuery, for example create a cookie named test and set the value to 1?
I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on. var d = do
What are the differences between JavaScript's window.onload and jQuery's $(document).ready() method?
How can I check if a checkbox in a checkbox array is checked using the id of the checkbox array? I am using t
How can you change the href attribute (link target) for a hyperlink using jQuery?
I have a table column I’m trying to expand and hide. jQuery seems to hide the <td> elements when I sel
What is the best method for adding options to a <select> from a JavaScript object using jQuery? I'
I'm using $.post() to call a servlet using Ajax and then using the resulting HTML fragment to replace a d