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

learn more… | top users | synonyms

2
votes
1answer
2k views

In Google Chrome, how can I get rid of the big gray box that displays “The server refused the connection.”?

I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely: 0.0.0.0 facebook.com facebook.net ...
0
votes
1answer
2k views

Disable “Prevent this page from creating additional dialogs” for certain websites as a user

Firefox has long had a feature to protect users from over-aggressive Javascript websites that would generate repeated pop-ups to trick or annoy visitors. Is there a way to disable this protection on ...
1
vote
3answers
2k views

How can I automatically lock the screen when idle in CentOS?

How can I automatically lock the screen when idle in CentOS? I would like it so that a user has to re-enter their password once the machine has been idle for a period of time. If there is no option ...
-2
votes
0answers
19 views

Javascript, why its max prints is 4 times? not 5? 6? 7? and so on and so fort… why just 4 times? [on hold]

I tested this code so many times... and the max prints of "Heads! Flipping again... " is 4 times and 1 "Tails! Done flipping." ... My question now here is... why its max prints is 4 times? not 5? 6? ...
0
votes
1answer
34 views

How to run this javascript offline?

I'd like to have offline the functionality of this javascript: jspretty. I know that I can get the same online, but I want it offline. How can I run the js above?
0
votes
2answers
770 views

What are some ways to use my browser, Chrome, as a JavaScript interpreter?

I use an online interpreter. It's just right up there on my favorite's bar. Very convenient for me.... I'd like to see the error messages my browser will give me rather than the messages the ...
1
vote
1answer
3k views

Access-Control-Allow-Origin '*' not allowed/working with Apache2

I'm trying to connect to hood.ie via Javascript: hoodie = new Hoodie('http://xxx.com:6001'); But then get an error: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when ...
0
votes
1answer
19 views

How to alert if an unwanted Cookie was set on my own website?

My website needs 4 different cookies. From time to time an additional cookie appears (Update: for my domain!) that is not set through my PHP code. As I do not use external javascripts as long I'm ...
1
vote
1answer
21 views

What happens to a site that is NOT in trusted sites?

Anytime that I open a web app (uses javascript ESRI code) via window.showModalDialog I get the following error: Using window.open does not cause any issues. I have played around with privacy ...
0
votes
1answer
5k views

How to correctly use javascript:alert(document.lastModified); to check a website last update?

I read many webpages. They said that I could use javascript:alert(document.lastModified); to find the last update of a site. I test at least 10 websites. Only the website that I made gives me the ...
1
vote
1answer
3k views

Why doesn't Javascript work in Internet Explorer?

I'm trying to use Internet Explorer to test a website, but scripts don't seem to be running. This seems like it's an issue on a lot of pages - for example, I tried going to the Acid3 page, and it said ...
0
votes
1answer
1k views

How to reload javascript modules for Firefox extension development?

Currently, when I develop a Firefox extension that uses JavaScript Modules (JSM), then I have to disable the extension -> restart Firefox -> enable the extension -> restart Firefox in order to execute ...
0
votes
0answers
16 views

Java Application Error while code signing for signing control in firefox

While code signing for Firefox crypto control, I was prompted with below error. Its a Java Script Application. psigntoolext_signArchiveFile(): xpsigntoolext_extractArchiveFile() failed - ex : ...
1
vote
3answers
40 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
1
vote
0answers
17 views

web developing terminology (navigation) [closed]

Okay when programming a website you come across options like to use Ajax or not to use ajax. Ajax is the ability to load the result of a resource such as PHP without reloading the page. What is the ...
0
votes
0answers
30 views

Why is Chrome downloading javascript files?

I'm using Chrome 41.0.2272.101 with Ghostery and Adblock Plus. Often, when loading webpages, it downloads some files on its own. For example, in gmail.com it downloads a file named "hovercard", or in ...
0
votes
0answers
20 views

Do modern browsers automatically remove '..' from an URL?

I'm building a barebones server in Node. I have heard about 'Directory Traversal Attacks' where a user visiting the site can navigate to files stored on the server than aren't supposed to be served by ...
3
votes
1answer
30 views

How to prevent Fingerprinting via Font Enumeration

I don't mean using Noscript or just not installing fonts, I'm trying to find a way of outright denying Flash, Java, and JavaScript the ability to look at my fonts. I've checked the fonts folder and it ...
1
vote
2answers
20 views

Concatenation in JS functions [closed]

First question here. I am doing Codecademy's JS basics course and have run into a question concerning concatenation in functions. I have: var greeting = function(name){ console.log("Hello, "+"" ...
-1
votes
1answer
37 views

Possible to get a virus from just visiting a website? [duplicate]

This has been something that has been on my mind for quite some time now. I have some experience with Javascript and know that it has a function that can store files on a user's computer. My question ...
1
vote
1answer
77 views

How can I use bookmarklets in IE11 that involve cross-site scripting?

I'm trying to use some bookmarklets that involve loading javascript from a trusted website. In particular, OpenSpritz and Squirt I have Squirt working in Chrome, but I use IE11 for the most part. ...
0
votes
0answers
6 views

Serviio and a javascript player

I'm trying to get Jplayer and the Serviio streaming service to work together. I have files of the following format: mp4, avi, mov, mpg, mpeg, wmv and needs to be played on Chrome, FF, Mobile, ...
1
vote
2answers
81 views

How to open JavaScript link in new tab

I’m stuck using a crappy website that is very dynamic and uses a lot of JavaScript, basically it has a table with many rows, each containing a link. Initially the rows are in a very poor order and I ...
1
vote
3answers
45 views

Optimizing JavaScript Files

When a JavaScript file is sent over an HTTP connection, the entire file is sent, and then the preprocessor on the clientside will deal with the rest? Therefore, would removing comments and whitespace ...
7
votes
2answers
15k views

How can I disable javascript popups/alerts in Chrome?

Sorry if it's been asked. I've already found several solutions that aren't working. Not sure what I'm doing wrong. I don't want to disable all javascript, only Javascript alert boxes. The ones that ...
1
vote
1answer
45 views

How to totally mute Firefox on OS X?

I sometimes listen to music while working/browsing, and the music is mastered with relatively low average loudness (high dynamic range), so any sound from webpage is like explosion. And there are 2 ...
0
votes
1answer
16 views

Bookmarklet to take current url as a parameter to other URL

I want to make a bookmarklet that takes a string from current URL of the browser and passes it as parameter of my specific URL and reload this new URL in browser. The string required is after "=" sign ...
10
votes
6answers
4k views

Greasemonkey script (or Firefox extension) to stop sites from disabling copy-paste?

Is there a GreaseMonkey script to disable the JavaScript-disabling of copy-paste in Firefox (3.0)? Or should I just run NoScript or some other extension on any site that attempts this (other things ...
1
vote
0answers
44 views

how to change the file download location of firefox using javascript

i need to export some files on local machine . so i need to choose some location to save files. Instead of that i need to exported file in certain location in my local machine automatically. Is it ...
1
vote
1answer
220 views

Thunderbird 31.0 running embedded JavaScript in email

I wish to disable support for JavaScript embedded in HTML-formatted emails in Thunderbird. What is the recommended way of doing this? In case no one else has this issue, I've been using Thunderbird ...
1
vote
1answer
39 views

How do I see all the errors in a JS file in one place?

Other than manually looking for the wavy underlines to see all possible errors in a file, is there a way to see all the possible Syntax, Spelling and Scope errors in one place? For example: those ...
1
vote
1answer
8k views

JavaScript injection script, how to remove?

today I started to notice a very strange behavior. At some intervals my web pages in Chrome browser changes its web address to some javascript code javascript:try{if(document.body.innerHTML){var ...
5
votes
3answers
1k views

How can I stop JavaScript from modifying the clipboard?

More and more I find that when I copy text from a news site, the site adds in its own advertising/footnote link to my clipboard, so that when I paste, the copied text is appended with something like: ...
0
votes
0answers
12 views

Microsoft JScript in Office 2013 compatibility

I just read the following article about InfoPath 2013 Development: Choosing a Programming Language: InfoPath provides the options to program by using four versions of the InfoPath object ...
1
vote
0answers
42 views

How to search and highlight long passages in a PDF file?

I made several highlights on Kindle Touch to PDF files. Kindle saves the highlighted text in a separate file, not on the PDFs themselves. I have all the text of the passages I want highlighted, what I ...
0
votes
1answer
283 views

Open browser type with javascript window.open() [closed]

Is it possible to open a specific browser type i.e. Google chrome, Firefox, Chromium using the window.open() method? For instance, I have Google chrome, Firefox and chromium installed on my system and ...
5
votes
2answers
3k views

What is Best-Deals-Products and is it malware?

I have found something that I suspects to be malware/addware. Script is added in every website I visit, even once I made myself. This is added in the : http://puu.sh/dgIF0/0c452eb390.png and iFrames ...
0
votes
1answer
61 views

How to configure linux to display webpage at localhost 127.0.0.1 that allows javascript-issued terminal commands?

Sorry if I am confusing things (don't know much about this topic). Basically, I want to access my raspberry pi wirelessly from my phone as long as I am within a few meters of it, and in this situation ...
1
vote
1answer
29 views

Multiple downloads from public source (web site), how to bypass “click on OK button” triggered by Javascript?

I'm trying to download multiple data sets from a public source, the European Union Transaction Log. I'm using the "Allocation / Compliance" search tool (in the left blue pane). From there I must ...
0
votes
0answers
33 views

How to bypass empty user for VLC 2.1.x HTTP Control

I am controlling four VLC simultaneously for demo purposes. To achieve that, I use a mix of AutoIt to launch four instances with the F9 key : C:\VLC\vlc.exe -Idummy --extraintf http --http-port 8080 ...
0
votes
1answer
52 views

Block javascript on specific websites in Internet Explorer

I'm looking for a way to block javascript for specific websites in Internet Explorer, like YesScript does in Mozilla Firefox. Is there a plugin or a way to do this? It seems like this is not possible ...
-1
votes
1answer
45 views

run a function and print that's output after clicking on submit button [closed]

Hi I'm new to js and i have to use something in my project. I have a function that is it : function hash_f() { var hash = new XMLHttpRequest(); hash.onload = function(){ ...
1
vote
1answer
45 views

How to toggle JavaScript on demand (Chrome browser)

In Chrome, I know how to manage exceptions by pointing my browser to chrome://settings/content so as to disable JavaScript on just a few sites. But there's this one site which was coded badly, and a ...
0
votes
0answers
37 views

Computer malware injects scripts causing full of javascript errors

I have a local browser application (written in php, running on usbwebserver) which runs fine on all of my users' computers except for one. When i checked the app, it seems that there have been ...
1
vote
0answers
28 views

How can I find out what a remote script does before I let a website run it?

I use NoScript (on seamonkey, on Ubuntu linux) to defend myself against irrelevant scripting. However, many sites use a mix of scripts I will tolerate and scripts I do not want running (such as ...
0
votes
1answer
49 views

Force javascript to use a non-default sound device

I'm trying to force a single page that's playing audio through javascript to use a different soundcard from the rest of the browser(from the rest of the system actually). My current understanding is ...
5
votes
1answer
12k views

How to prevent a dialog box from opening in Google Chrome?

I have to visit a website in a regular basis that reminds me it was originally designed for Internet Explorer 8 and Mozilla Firefox 3.5.12 to 3.6.10. It displays a dialog box with that warning ...
1
vote
0answers
28 views

how do I prevent websites from automatically playing mp3 audio without turning javascript off?

Some websites like http://www.publika.ro/ use javascript to automatically load and play mp3 audio. How do I prevent any site from automatically starting playback, without losing the ability to run ...
0
votes
1answer
69 views

Download full web page: css, js, images and one or more levels of links

I am trying to download a web page including everything. I tried several methods and so far what worked better is the build in save page in Firefox, nevertheless it does not allow me to include one or ...
0
votes
0answers
30 views

Is it possible to have IE10 developer tools launch JavaScript debugger during infinite loop?

The issue is that my client has an application that is deployed to IE8 and IE10. The application doesn't work on any other browsers. Occasionally end-users are reporting browser crashes, where they ...