- Articles
175 results
-
Bookmarklet converter
This script is a bookmarklet — a small JavaScript program saved as a browser bookmark — that clips web page content and sends it directly to Obsidian, a popular note-taking application. When activated, it: Extracts the main readable content from the current page Converts it to Markdown format... -
What is the most efficient way to deep clone an object in JavaScript?
Question: b' This question's answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. What is the most efficient way to clone a JavaScript object? I\'ve seen obj = eval(uneval(o)); being used, but that\'s... -
For-each over an array in JavaScript
Question: b' How can I loop through all the entries in an array using JavaScript? ' Solution : https://worcraft-algeria-dz.com/howto/22/For-each-over-an-array-in-JavaScript | Source : https://worcraft-algeria-dz.com/ -
HTMLCollection/~
Object ⇒ HTMLCollection -
JavaScript is broken
JavaScript is broken.See that simple, 3-line script? That's supposed to make a red ellipse on a black background. However, it calls all 3 lines "undefined". This removes my reason of using JavaScript and I pretty much can't do anything with it anymore. I think that means every useful command is... -
Javascript - How can I know which radio button is selected via jQuery?
Question: b' I have two radio buttons and want to post the value of the selected one.How can I get the value with jQuery?I can get all of them like this:$("form :radio")How do I know which one is selected? ' Solution : https://worcraft-algeria-dz.com/howto/63... -
Array
Template:Mainonly An array is a collection of values stored in a list that can be accessed by position. The array literal is a comma-separated list of values enclosed in square brackets. The array data-structure is much like a bin of numbered pages. (Whereas the object data-structure is like a... -
Main Page
-
Generate random string/characters in JavaScript
-
Chain.js
These two functions allow you to easily modify the behavior of any mutable methods while (optionally) preserving the old logic. Your logic may filter the method's input and/or output, and/or decide whether the old logic should be executed at all. var failed = setCallbacks(object, callbacks... -
How do I get the current date in JavaScript?
Question: b' Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. Answers without enough detail may be edited or deleted. How do I get the current date in JavaScript? ' Solution : https... -
Javascript - Is there an exists function for jQuery?
Question: b' How can I check the existence of an element in jQuery?The current code that I have is this:if ($(selector).length > 0) { // Do something}Is there a more elegant way to approach this? Perhaps a plugin or a function? ' Solution : https://worcraft-algeria-dz.com/howto/62... -
How do I remove a property from a JavaScript object?
-
Current events
This page is for news about this Wikia and its subject. To add to this page, click the "edit" link. (Older entries may be moved to an archive or history page.) As of 18:11, 25 September 2008 (UTC), I have adopted this wiki. It is no longer dead and forum messages will be read and replied to as... -
Assignment operators
Each entry except the first (and second) is derived as an arithmetic operator combined with the "equals" sign. All assignment operators evaluate to the assigned value. The primary assignment operator, and by far the most important among all the operators, is the lone "equals" sign ... -
How do I loop through or enumerate a JavaScript object?
Question: b" I have a JavaScript object like the following:var p = { "p1": "value1", "p2": "value2", "p3": "value3"};How do I loop through all of p's elements (p1, p2, p3...) and get their keys and values? " Solution : https... -
RegExp
A regular expression is a sequence of characters (but not a string) which "matches" a specific set of strings. Regexes may be initialized via either the Window.RegExp constructor or the regex literal. -
HTMLElement
Gets or sets the number of pixels that the content of an element is scrolled upward. -
Javascript - How can I upload files asynchronously with jQuery?
Question: b' I would like to upload a file asynchronously with jQuery. $(document).ready(function () { $("#uploadbutton").click(function () { var filename = $("#file").val(); $.ajax({ type: "POST", url: "addFile.do", enctype: \'multipart/form-data\', data: { file: filename }, success: function... -
Forums
The following forums are recommended by the JavaScript Wiki for JavaScript help: Dynamic Drive Forums W3Schools Forum -
Math
The Math object is an object that allows you to perform mathematical tasks on numbers. This object includes several mathematical methods. JavaScript Examples Returns the absolute value of (that is, a positive number of the same magnitude as) x. Rounds the number to the nearest integer. If you... -
Javascript - Is it possible to apply CSS to half of a character?
Question: b' What I am looking for:A way to style one HALF of a character. (In this case, half the letter being transparent)What I have currently searched for and tried (With no luck):Methods for styling half of a character/letterStyling part of a character with CSS or JavaScriptApply CSS to 50... -
Javascript - Open a URL in a new tab and not a new window
-
H1 - h6
The element represents the top-level heading of a page or a section. It should be used to define the main title or topic of a page. In JavaScript, you can access and manipulate the content of an element using the Document Object Model (DOM). The element is used for subsection... -
Javascript - How can I remove a specific item from an array?
Question: b'\r\n \r\nHow do I remove a specific value from an array? Something like:\narray.remove(value); // removes all elements with value\n\nI have to use core JavaScript. Frameworks are not allowed.\n ' Solution : https://worcraft-algeria-dz.com/howto/10...