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

learn more… | top users | synonyms

0
votes
0answers
20 views

JS Script error in IE11

I get a javascript "Script Error" popup window every time when it tries to auto open this page. The page contains adobe pdf files, and the script opens the pdf automatically inside the webpage/window. ...
-1
votes
1answer
31 views

Website slowing down when many users access simultaneously [closed]

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
25 views

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

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
9 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
16 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 ...
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 ...
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
23 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"> ...
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 ...
1
vote
0answers
52 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
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
21 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. ...
-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 ...
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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
50 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, ...
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
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
46 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
32 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
308 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
1answer
86 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 ...
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 ...
1
vote
1answer
29 views

Browsing image gallery websites with two windows

Imagine an arbitrary image gallery website (i.e. deviantart.com). You get an overview of thumbnails and upon clicking these, you're usually redirected to a dedicated page showing the enlarged version ...
0
votes
1answer
30 views

Can JavaScript embedded in a web page access the URL parameters of the page request?

Can JavaScript embedded in a served HTML page access the page-request URL, including its parameters?
2
votes
0answers
25 views

NiceAlert (suppresses JavaScript alert) equivalent extension for Internet Explorer [closed]

I live in South Korea which is full of cheap web programmers who don't understand accessibilty or cross-platform, etc. Many major Korean web sites are built by those kind of programmers and managers. ...
0
votes
1answer
111 views

how to print a page from web browser without print window using javascript or php

I am developing an POS application for my own shop in web. Now for that in billing section have features like select the products and print bill, this process is only two steps. However when I click ...
0
votes
0answers
390 views

Hack for running multiple iMacros in random fashion

I have 20 iMacros (for browser) and they are specific to different URLs. I run these macros one after another, and then repeat or loop all of them 10 times. But within that loop, i need those 20 ...
0
votes
0answers
43 views

Is there a way to view the hierarchical structure of javascript files while debugging (F12) in Firefox?

I'm using Firefox 29, and when I open up the debugger (F12 for web console)->Debugger Tab, I get a list of sources at the bottom left of the web console, but they're not in any particular order, and ...
1
vote
0answers
111 views

Several website functions just no longer work in Firefox for me…but maybe there's a pattern?

This is really weird, because I don't recall making any large changes or messing around with about:config in Firefox. I was on FF 30 the whole time. The problems just emerged. Here's some example: ...
0
votes
0answers
50 views

CLI tools/ways for dynamically constructed DOM structure parsing HTML Javascript

I'm planning to make a tool which recognizes HTML using DOM structure in CLI. As many sites produce many DOM elements using JavaScript these days, it's becoming difficult to extract information from ...
0
votes
1answer
377 views

Error: Unterminated String Literal

First off, I am NOT a web developer; I'm not building websites; I just want to surf the internet in peace. However, today I've started receiving this error over and over again on every website I go ...
0
votes
0answers
23 views

How can I track links that are being redirected during browsing?

I'm using Chrome on Windows 7. When I'm going on to a site such as youtube.com, I'm being redirected to site that tells me YouTube is blocked. Now, I'd like to find out – during a regular browsing ...
0
votes
1answer
56 views

How to navigate PHP-based pagination with WGET?

I'm trying to come up with a list of possible names for our next baby boy and have been looking through the site IndiaParenting. Each name on the site has a detail page at a URL like this one ...
0
votes
1answer
68 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 ...
1
vote
1answer
46 views

Save javascript image

My daughter's school is posting nice pictures of her but unfortunately it is not possible to save them as they are displayed using javascript (right click on image then "save as..." only saves the ...
1
vote
0answers
68 views

MSIE11 Developer Tools not showing requests made by EMBED element

UPDATE: I assume the cause behind this weird behavor is that some plugins (WMP, VLC, ...) in some DOCTYPEs talk to the remote server directly, therefore browser simply can not detect their requests. I ...
0
votes
0answers
30 views

Pocket extension for Chrome stopped working with JavaScript disabled per-site. Which side to blame?

I have Save to Pocket installed for Google Chrome on OS X. Recently it stopped working for sites which have JavaScript disabled (via Quick Javascript Switcher)--although it worked well before, with JS ...
-1
votes
3answers
58 views

Where do I get a JavaScript console?

I am trying to teach myself javascript, I am doing so by editing an existing programs files, but I would like to write a script, (Not HTML) and run it, and see the console results to see what's going ...
0
votes
1answer
17 views

Weird js file opens when OS starts. What is this?

There is a friend of mine who's running Windows XP. After she installed Dreamweaver CS6, everytime the OS starts, Dreamweaver opens automatically and shows this js file: http://jsfiddle.net/H6YXw Do ...
1
vote
2answers
98 views

Powershell ISE 3.0 Intellisense for other programming languages

I really love using Powershell ISE - something about it makes me want to work with it; everything just fits together well, and it is smooth. Also I love the way intelligent autocomplete is ...
0
votes
0answers
39 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 ...
-2
votes
1answer
33 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
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 ...
0
votes
0answers
48 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. ...