tagged [javascript]

__proto__ VS. prototype in JavaScript

__proto__ VS. prototype in JavaScript > This figure again shows that every object has a prototype. Constructor function Foo also has its own `__proto__` which is Function.prototype, and which in turn ...

Get variable from PHP to JavaScript

Get variable from PHP to JavaScript I want to use a PHP variable in JavaScript. How is it possible?

11 Apr at 22:36

Trim string in JavaScript

Trim string in JavaScript How do I remove all whitespace from the start and end of the string?

13 Jun at 01:47

What's "this" in JavaScript onclick?

What's "this" in JavaScript onclick? What does `this` mean in the script?

23 Jul at 17:28

Print the contents of a DIV

Print the contents of a DIV Whats the best way to print the contents of a DIV?

19 Feb at 03:59

Remove characters from a string

Remove characters from a string What are the different ways I can remove characters from a string in JavaScript?

21 Oct at 18:1

Refresh a page using JavaScript or HTML

Refresh a page using JavaScript or HTML How can I refresh a page using JavaScript or HTML?

6 Sep at 11:15

$(window).scrollTop() vs. $(document).scrollTop()

$(window).scrollTop() vs. $(document).scrollTop() What's the difference between: and Thanks.

How to pop an alert message box using PHP?

How to pop an alert message box using PHP? How to pop an alert message box using PHP?

12 Apr at 14:0

Failed to instantiate module [$injector:unpr] Unknown provider: $routeProvider

Failed to instantiate module [$injector:unpr] Unknown provider: $routeProvider I received this error upon upgrading from AngularJS to .

28 Aug at 07:34

JavaScript Chart Library

JavaScript Chart Library Would anyone recommend a particular JavaScript charting library - specifically one that doesn't use flash at all?

23 Sep at 09:4

Simplest SOAP example

Simplest SOAP example What is the simplest SOAP example using Javascript? To be as useful as possible, the answer should: - - - - -

15 Feb at 04:2

Detect the Internet connection is offline?

Detect the Internet connection is offline? How to detect the Internet connection is offline in JavaScript?

Calling onclick on a radiobutton list using javascript

Calling onclick on a radiobutton list using javascript How do I call onclick on a radiobutton list using javascript?

12 Dec at 12:34

How to decode HTML entities using jQuery?

How to decode HTML entities using jQuery? How do I use jQuery to decode HTML entities in a string?

10 Jul at 19:56

How to select multiple files with <input type="file">?

How to select multiple files with ? How to select multiple files with ``?

12 Jan at 00:0

How to concatenate two numbers in javascript?

How to concatenate two numbers in javascript? I'd like for something like `5 + 6` to return `"56"` instead of `11`.

12 Nov at 16:58

How do I format a date in JavaScript?

How do I format a date in JavaScript? How do I format a `Date` object to a string?

17 Jul at 20:41

How to click a browser button with JavaScript automatically?

How to click a browser button with JavaScript automatically? How to click a button every second using JavaScript?

12 Aug at 08:3

How to watch for a route change in AngularJS?

How to watch for a route change in AngularJS? How would one watch/trigger an event on a route change?

8 May at 14:0

How to dynamically insert a <script> tag via jQuery after page load?

How to dynamically insert a tag via jQuery after page load? I'm having problems getting this to work. I first tried setting my script tags as strings and then using jquery replaceWith() to add them to...

How can I remove a child node in HTML using JavaScript?

How can I remove a child node in HTML using JavaScript? Is there a function like `document.getElementById("FirstDiv").clear()`?

8 Feb at 11:48

Using Javascript in CSS

Using Javascript in CSS Is it possible to use Javascript inside CSS? If it is, can you give a simple example?

20 May at 17:56

Is it possible to simulate key press events programmatically?

Is it possible to simulate key press events programmatically? Is it possible to simulate key press events programmatically in JavaScript?

19 Aug at 09:48

Add new attribute (element) to JSON object using JavaScript

Add new attribute (element) to JSON object using JavaScript How do I add new attribute (element) to JSON object using JavaScript?

26 Mar at 08:49

JavaScript equivalent of PHP’s die

JavaScript equivalent of PHP’s die Is there something like "die" in JavaScript? I've tried with "break", but doesn't work :)

1 Sep at 09:18

Calling iframe function

Calling iframe function Is there a way to call a JavaScript function that is inside an IFrame from the parent?

22 Jun at 13:54

JavaScript alert box with timer

JavaScript alert box with timer I want to display the alert box but for a certain interval. Is it possible in JavaScript?

26 Dec at 08:1

How to globally replace a forward slash in a JavaScript string?

How to globally replace a forward slash in a JavaScript string? How to globally replace a forward slash in a JavaScript string?

8 Feb at 23:48

How to get datetime in JavaScript?

How to get datetime in JavaScript? How to get date time in JavaScript with format 31/12/2010 03:55 AM?

23 Jul at 14:57

How can I make an AJAX call without jQuery?

How can I make an AJAX call without jQuery? How can I make an AJAX call using JavaScript, without using jQuery?

20 Oct at 03:18

Looking for a simple JavaScript example that updates DOM

Looking for a simple JavaScript example that updates DOM I am looking for a simple JavaScript example that updates DOM. Any suggestions?

2 Dec at 13:7

Auto start print html page using javascript

Auto start print html page using javascript Is there anyway to automatically run `javascript:window.print()` when the page finishes loading?

12 May at 08:59

Is there an equivalent for var_dump (PHP) in Javascript?

Is there an equivalent for var_dump (PHP) in Javascript? We need to see what methods/fields an object has in Javascript.

27 Nov at 11:29

Abort Ajax requests using jQuery

Abort Ajax requests using jQuery Is it possible that using jQuery, I that I have not yet received the response from?

8 Jul at 00:24

What is the JavaScript equivalent of C# Server.URLEncode?

What is the JavaScript equivalent of C# Server.URLEncode? What is the JavaScript equivalent of C# Server.URLEncode?

29 Jun at 17:0

Parse DateTime string in JavaScript

Parse DateTime string in JavaScript Does anyone know how to parse date string in required format `dd.mm.yyyy`?

What is the fastest factorial function in JavaScript?

What is the fastest factorial function in JavaScript? Looking for a really fast implementation of the function in JavaScript. Any suggestions?

2 May at 00:55

Convert Array to Object

Convert Array to Object What is the best way to convert: to:

10 Mar at 14:18

Check element CSS display with JavaScript

Check element CSS display with JavaScript Is it possible to check if an element's CSS `display == block` or `none` using JavaScript?

19 Nov at 13:0

What is the opposite of evt.preventDefault();

What is the opposite of evt.preventDefault(); Once I've fired an `evt.preventDefault()`, how can I resume default actions again?

31 Oct at 13:1

Calling JavaScript Function From CodeBehind

Calling JavaScript Function From CodeBehind Can someone provide good examples of calling a JavaScript function From CodeBehind and Vice-versa?

13 Feb at 21:44

What is the (function() { } )() construct in JavaScript?

What is the (function() { } )() construct in JavaScript? I would like to know what this means: Is this basically saying `document.onload`?

4 Jul at 12:8

HTML5 check if audio is playing?

HTML5 check if audio is playing? What's the javascript api for checking if an html5 audio element is currently playing?

24 Feb at 20:0

componentDidMount equivalent on a React function/Hooks component?

componentDidMount equivalent on a React function/Hooks component? Are there ways to simulate `componentDidMount` in React functional components via hooks?

12 Dec at 10:55

How to sum the values of a JavaScript object?

How to sum the values of a JavaScript object? I'd like to sum the values of an object. I'm used to python where it would just be: The following code works, but it's a lot of code: ``` function obj_val...

19 Aug at 19:13

Learning JavaScript for a total non-programmer

Learning JavaScript for a total non-programmer I code CSS/XHTML like it should be my mother language, and I do write valid, semantic code following guidelines of accessibility and such. But I want to ...

20 Jun at 09:12

Is there a jQuery unfocus method?

Is there a jQuery unfocus method? How can I unfocus a textarea or input? I couldn't find a `$('#my-textarea').unfocus();` method?

9 Aug at 15:20

Is there any way to call a function periodically in JavaScript?

Is there any way to call a function periodically in JavaScript? Is there any way to call a function periodically in JavaScript?

1 Oct at 06:45

What is DOM Event delegation?

What is DOM Event delegation? Can anyone please explain event delegation in JavaScript and how is it useful?