alex's user avatar
alex's user avatar
alex's user avatar
alex
Front End Engineer at Facebook
  • Member for 15 years, 1 month
  • Last seen this week
1573 votes
Accepted

How to overlay one div over another div

1245 votes
Accepted

JavaScript: location.href to open in new window/tab?

825 votes
Accepted

Maximum call stack size exceeded error

818 votes
Accepted

How can I check if an element exists in the visible DOM?

586 votes
Accepted

How can I remove the decimal part from JavaScript number?

578 votes
Accepted

Download File to server from URL

560 votes

How do CSS triangles work?

482 votes
Accepted

How can I get the current script file name, but without the extension ".php"?

471 votes
Accepted

Equivalent of jQuery .hide() to set visibility: hidden

443 votes

Get a CSS value with JavaScript

355 votes

How to split comma separated string using JavaScript?

326 votes
Accepted

How to get the element clicked (for the whole document)?

317 votes
Accepted

What does a tilde do when it precedes an expression?

314 votes
Accepted

How to customize <input type="file">?

308 votes
Accepted

Mixing a PHP variable with a string literal

295 votes

Disable dragging an image from an HTML page

286 votes
Accepted

How to create a directory and give permission in single command

284 votes
Accepted

How do I convert datetime to ISO 8601 in PHP

278 votes

How to flip background image using CSS?

278 votes
Accepted

How do I add a simple onClick event handler to a canvas element?

265 votes
Accepted

How can I get a collection of keys in a JavaScript dictionary?

238 votes

Catching multiple exception types in one catch block

233 votes
Accepted

git visual diff between branches

231 votes
Accepted

PHP array: count or sizeof?

223 votes

Creating multiline strings in JavaScript

222 votes
Accepted

How to get commit history for just one branch?

221 votes

Get the position of a div/span tag

208 votes
Accepted

Format a JavaScript string using placeholders and an object of substitutions?

207 votes
Accepted

How do I cancel form submission in submit button onclick event?

196 votes
Accepted

Add a fragment to the URL without causing a redirect?

1
2 3 4 5
160