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

learn more… | top users | synonyms

10
votes
3answers
1k views

How to see exception message in Google Chrome while paused?

I'm using Google Chrome for debugging JavaScript. I opened up the JavaScript Console and the "Pause on Exception" feature is enabled. Now whenever I run JavaScript that has an exception in it, it ...
13
votes
10answers
4k views

Blocking hover ads

Okay, I am done with hover ads. I am so done with it, I am starting to avoid website which implement them even though I (used to) like those websites. Obviously, it is considerably harder to block ...
-1
votes
1answer
30 views

Website slowing down when many users access simultaneously [on hold]

I'm new to web development. I have hosted my website through a free web hosting service providing free subdomain. The free hosting service says that they provide 100 GB bandwidth. I just upload files ...
-5
votes
0answers
22 views

How to subtract start date from end date in java script? [on hold]

I have a task to subtract start date from end date and to display the result in days/month/year.But i am unable to do this.Please help me thanks in advance.
0
votes
0answers
8 views

How to evaluate expressions in Eclipse EE while debugging

In chrome, when you have some javascript code, like this one: if(1 === 50) { return false; } else if(1 === 1) { return true; } You are able to highlight the expressions in the if ...
-1
votes
0answers
15 views

How to count cells of the same color in HTML table with javascript? [on hold]

I have HTML and some tables in it. In one of the them, there is a row and inside this row there are some red cells: td bgcolor='red' I'd need a javascript to display number of red cells in this ...
8
votes
4answers
3k views

How to hide Browser Plugin Details in firefox for more privacy?

I'm trying to trick the results in this page to have more privacy/anonymity: https://panopticlick.eff.org/index.php?action=log&js=yes So far the best I could do is change the user agent, with the ...
0
votes
0answers
6 views

Wordpress Visual Composer Plugin Needed

Wordpress Visual Composer Plugin only allows me to add to this elements to the blog posts grid: “Thumbnail”, “Title”, “Text” and “Read more link”. Is there any add-on that will allow me to add 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
0answers
21 views

Search function return multiple results [migrated]

I'm currently trying to make a search function that searches an array for a string and returns the index of the location in the array for which it matches the string. Ex: Array: ...
0
votes
0answers
12 views

Give Vimperator key combinations (e.g. <C-i>) priority over all site specific ones

When in an input field the key combination <C-I> opens an instance of your editor where you can then write and save so the output is sent to the input field. However, when I use this key ...
-5
votes
0answers
20 views

How to add widget to Microsoft Word with HTML

So I have this HTML for a Wolfram Alpha javascript widget: <script type="text/javascript" id="WolframAlphaScript8ab7f718012c87aad3887a7d136cdf53" ...
-1
votes
0answers
17 views

Javascript not running at all in IE

I just have a small problem: This is all I have for my script <script type="text/javascript" src="./jquery.js"></script> <script type="text/javascript"> ...
12
votes
5answers
72k views

How to download the entire webpage with css/javascript?

For learning purposes, I'd like to download the html/css/javascript of sites. Using Firefox now only seems to download the html page, images/css/js are not downloaded. Is there a plugin to do this ...
16
votes
5answers
13k views

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 ...
0
votes
0answers
14 views

Disabling default browser shortcuts

I am trying to disable browser shortcuts ctrl+n, ctrl+p It works in Firefox but did doesn't work in chrome. Here is my code. // prevent default system shortcuts ctrl+n , ctrl+p ...
0
votes
1answer
3k 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
0answers
47 views

Logging into a website throws up some code

So I was logging into a website earlier today on my PC, and this gets thrown up for me " + ""; return head; } function htmlFooter() { return "" + ""; } function hideFrames() { var gqFrame = ...
1
vote
1answer
2k 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 ...
-1
votes
0answers
25 views

How do I get rid of this Flashback Virus?

I have a macbook pro OSX10.9.1. I have a virus from downloading a plugin. Every click that I make on Safari will bring me to a new tab with popups telling me to download. It is literally EVERY time I ...
0
votes
0answers
20 views

Only the first row is accessed on the foreach loop

What i wanna do is to pass using javascript the following values(refer to the value of the radio button) whenever i click on the radio button. I have this code on a blade template using laravel. ...
0
votes
0answers
15 views

What logging can I turn on / dump can I retrieve in order to report this bug in Chrome?

Once or twice a week, I run into a bug in Chrome where not only all my Chrome tabs, but even all my Chrome windows, appear frozen, due to an invisible Javascript confirmation dialog. I don't know what ...
-1
votes
0answers
18 views

Video.js and Ima Sdk

When i visit my video url: https://www.domain.com/watch?v=videoid the ads don't work, but when i visit https://www.domain.com/watch The ads do work so its really strange. Even when i change te ...
1
vote
1answer
53 views

Saving web pages containing scripts

Is there an easy way to save entire websites or isolated web pages containing Flash or Javascript?
0
votes
0answers
14 views

Is it possible to rip javascript images (chrome)?

I would like to rip entire image in maximum res and not single tiny puzzeled pieces. Is it possible to get to the source of the image and download it entirely in a whole? Like here for example ...
3
votes
0answers
1k views

how to enable inline javascript autocomplete in eclipse with aptana extension

Background I have Eclipse. I have installed the Aptana studio plugin for Eclipse. I am editing an HTML file. JavaScript auto-complete / content assist only works half of the time: Eclipse won't ...
10
votes
4answers
5k views

Prevent javascript from resizing IE window

I am looking for a way to prevent JavaScript on a webpage from resizing and repositioning my Internet Explorer window. This option is available in Firefox, but I can't find anything similar in ...
3
votes
1answer
651 views

Autocompletion in Firebug expanded console

This one's bugging me since ever. Is it possible to enable autocomplete in Firebug console when it's expanded? In "condensed" mode (which is default) it works like a charm. I noticed that some ...
0
votes
0answers
47 views

How to save a web app to static HTML?

I have a webapp that I want to save the HTML of to create a static version of a page I can send to someone. Obviously 'save as' won't work. Is there a way to save the currently displayed DOM as HTML, ...
23
votes
6answers
28k views

How do I disable Javascript in Chrome?

How do I disable Javascript in Chrome?
0
votes
0answers
18 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
votes
0answers
26 views

Sharing variables between 2 scripts

I'm trying to share variable between 2 different Tampermonkey scripts running in 2 separate tabs. I tried using GM_setValue in the first script then retrieving it with GM_getValue in the other one ...
4
votes
3answers
3k views

Is there a browser extension that bypasses restrictions of pasting passwords?

As one example out of many, if you go to https://appleid.apple.com and click to manage your account, you can't paste your password in the password field. There is some javascript that prevents that. ...
2
votes
1answer
192 views

Can an Opera mouse gesture be set to execute a user script?

I used to have that with FireGestures in Firefox, and with a simple gesture I would wipe off a DOM element. (great for deleting flash advertising) So are user scripts in opera only runnable on every ...
1
vote
0answers
18 views

Is there an easy way or script to let me email direct from Adobe Illustrator?

I do a lot of artwork and I really wish there was a way i could email direct from Illustrator. I have to manually save as PDF then go and find the file then right click it and do send to > mail ...
1
vote
1answer
23 views

Disable the `onselectedtext()` Javascrip method in Firefox

Many websites use the onselectedtext() method to pop up messages ("Read Aloud" or "Embed Quote") when selecting text on a webpage. I habitually select text to find my place when reading, so this ...
0
votes
1answer
67 views

Adobe Reader cParent parameter TypeError, “invalid argument type” but menu items display

I've written some custom scripts for Adobe Acrobat Pro (I work with a lot of PDFs for scientific research) and they run just fine on Mac and Windows. Linux only has Adobe Reader, but I still managed ...
0
votes
2answers
64 views

Does Adobe Dreamweaver support Javascript?

Thinking of subscribing to Adobe Creative Cloud. Does Adobe Dreamweaver support Javascript?
0
votes
0answers
32 views

Redirection to home page then i frame target

I am facing really technical problem for me! I am using some error variables and below iframe but when someone changes iframe the previous error keep showing on changed iframe to prevent this i have ...
0
votes
0answers
79 views

How to take Google search query and append modifers to the end of it in Greasemonkey discussion script

This is a greasemonkey question. What I'm trying to do is modify an old google discussions script. What were wanting to do is be able to take the google search query and add modifiers to the end of ...
0
votes
1answer
175 views

IE11 throws error in IEFRAME

When I try to see "properties" of JSFiddle's logo, IE11 shows script error in file res://ieframe.dll/anchbrws.js Looking at the file, I see function BodyLoad() { var arrAll = document.all; ...
0
votes
1answer
45 views

How do I scan Firefox on Ubuntu Linux for malicious JavaScripts?

I run Ubuntu Linux in a VirtualBox VM. I was browsing using Firefox, and I always use Adblock Plus with default configuration (EasyList) and NoScript. Then my VM lagged(mouse badly out of sync with ...
0
votes
0answers
31 views

How to run browser in background in Ubuntu

I am using Ubuntu 14.04, and PHP. I have 2 files: test.html - content java to test network update.php - the test file will post result to update database. I need to run and execute an URL address ...
0
votes
1answer
293 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 ...
2
votes
2answers
549 views

How do I prevent automatic browser page refreshment done by Javascript?

There are some news websites which automatically and periodically refresh their page just in order to show the user more advertisement. If you are watching a video, all the buffered stream is gone ...
1
vote
1answer
85 views

How to run Javascript code on any website?

How can I run Javascript code on a website to complete a set function or rule as per the website? For example, if I'm trying to download a file from some filehost that requires a survey... Now in ...
3
votes
1answer
69 views

Disable Javascript for certain page in Chrome

:D I have one question about Google Chrome. I know there is an option under Settings to disable javascript, even I can manage on which sites I don't want it. But my problem is here :) I'd like to ...
0
votes
0answers
37 views

How to get larger map on ISS live stream

The Gateway to Astronaut Photography of Earth streams pictures from camera's on the International Space Station. On the right hand side there is a flash window that shows trajectory and underneath it ...
0
votes
0answers
4k 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
2answers
2k views

How do I permanently disable javascript strict warnings in Firefox?

When I open Firefox (8 Beta and 7) and load a page with firebug open, I get a load of javascript strict warnings, so I disable javascript strict warnings so my page loads will speed up, which works ...