Questions tagged [javascript]

JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.

Programming questions for JavaScript are off topic here; ask on Stack Overflow instead. This tag is for questions about how to handle JavaScript files or interact with them using software such as browsers or text editors.

ECMAScript, JavaScript & JScript

ECMAScript was developed as a standardization of Netscape's JavaScript and Microsoft's JScript. The canonical reference is The ECMA-262 Language Specification. While JavaScript and JScript aim to be compatible with ECMAScript, they also provide additional features not described in the ECMA specifications. Other implementations of ECMAScript also exist.

The Basics

The Mozilla Developer Center offers good documentation on JavaScript.

JavaScript is most often used in the browser - see The Document Object Model.

Learning JavaScript

893 questions
144
votes
18 answers

How do websites block selecting text and how do I unblock that?

There's a website (example) that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu. What I have tried: Some sites use JavaScript to block selection. So I disabled all JavaScript…
user6329530
  • 1,593
62
votes
10 answers

How do I set Google Chrome to not allow javascript to hijack my right click menu

I despise web sites that hijack my right mouse button via javascript. Other browsers ( like firefox) allow me to block sites from doing this. Does chrome have such an option, or does it leave me at the mercy of annoying web site designers? I don't…
Peter
  • 803
60
votes
6 answers

Removing annoying click-handling logic from websites

There are a lot of websites out there that block your ability to right click or select text. I believe it's done as a sort of half-assed security measure to prevent people from copying text or images. Of course, it's always possible to circumvent…
Ram Rachum
  • 4,450
58
votes
4 answers

How do I prevent pages I visit from overriding selected Firefox shortcut keys?

In Firefox, how can I prevent pages from overriding Firefox built-in keyboard shortcuts through Javascript on a per-key basis? Preferably on a per-site basis, too? The most frustrating override is the forward slash ('/') that's linked to "Find in…
57
votes
6 answers

Why can't old PCs view modern sites?

The reason for this question is that many times clients, friends and parents ask me why their perfectly working old PC cannot be used online anymore. I am looking for a good answer to those people and myself (mostly myself). In 2000 I worked on a…
Armand P
  • 759
49
votes
5 answers

Use AdBlock without being detected

Upon visiting a site today I was rewarded with Comic Sans. Behold it's glory: Source Needless to say I can finally understand why so many people loathe this font. However, this does bring up a question. Will websites ever become smart enough to…
MonkeyZeus
  • 9,841
47
votes
5 answers

Command line browser with js support

Does anybody know good command line browser with js support? Ideally I need following ability: some-browser http://example.com > ~/page.html It means that cli browser download html, execute js and output a page.
Eugene Manuilov
  • 587
  • 1
  • 5
  • 10
38
votes
6 answers

How do I prevent "Read more: www.site.com" from being injected with non-Tynt JavaScript into copy-paste actions?

There are many sites that insert something like "Read more: www.site.com" into your clipboard when you copy text in your browser. I find this abominable. A Google earch reveals some methods to stop this if the website happens to be using the…
37
votes
5 answers

How Can I Stop Scripts on a Page in Firefox?

How can I stop scripts on a page in Firefox? I don't care if the solution is draconian. Super-tech-savvy solutions are also fine. Clarification: I don't want to turn off scripts permanently. I want to be able to kill a script (or all active…
Sildoreth
  • 485
29
votes
2 answers

What is JavaScript Obfuscation and why is it a threat?

AVG was recently telling me that a webpage was blocked because of JavaScript Obfuscation. Why was the webpage blocked and what exactly does that mean?
L84
  • 3,911
28
votes
9 answers

Change a favicon locally in google chrome

This is a frustrating question, mostly because all searches for this usually give me information on how to change a favicon for a website the user owns. Allow me to elaborate on my issue. I would like to be able to change the favicon that is…
Justin Bool
28
votes
8 answers

How do I disable Javascript in Chrome?

How do I disable Javascript in Chrome?
27
votes
5 answers

Force Google Chrome to check for new JavaScript files every time I access a web site

So, if I go to Internet options in Internet Explorer: I can adjust the settings for when IE checks for updates: Can I do something similar in Google Chrome? Right now when I change my JavaScript file and debug from Visual Studio, Chrome will…
25
votes
6 answers

Is there any *good* HTML-mode for emacs?

I love emacs, and I want to do my web-programming work in it, but I can't find a way to get it to edit HTML properly. I mean it's seriously awful. It will do HTML fine, but not PHP, javascript, etc. I tried getting html-helper-mode... I downloaded…
Carson Myers
  • 3,131
25
votes
3 answers

How to halt javascript execution after page load (Firefox)

Javascript is responsible for loading the content of a page I need, so disabling javascript with noScript prevents the content from loading. However, once the javascript for this page has finished loading content, it starts doing annoying gimmicky…
Jared K
  • 2,568
1
2 3
59 60