JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages. Use this tag for questions regarding ECMAScript and its dialects/ implementations: JavaScript, JScript, etc., excluding ActionScript.

learn more… | top users | synonyms (2)

20
votes
6answers
4k views

Can we ignore visitors without JavaScript enabled?

If you have developed a JavaScript based website, is it worth doing the extra work to make it accessible for visitors who don't have JavaScript enabled? What percentage of visitors are in this ...
0
votes
0answers
5 views

Investor Relations Website Standards/Laws [on hold]

I am working with a client who is listed and traded on NASDAQ. They are looking to have their investor relations (IR) portal rebuilt so that it is managed within their new website (WordPress). Their ...
4
votes
3answers
36 views

Embed Google Analytics Reports On Website

I want to embed Google Analytics charts into my website so that from the admin console I can view certain analytics charts without needing to log into the Analytics console. I have come across the ...
2
votes
1answer
36 views

Identify keys bound to website buttons

After running my site through powermapper tools, they present this issue: All ONCLICK handlers should have an equivalent ONKEYPRESS handler. Section 508 1194.22 (l) WCAG 2.0 A F54 Some ...
3
votes
1answer
12 views

How to tell if an incoming connection is a cellular network or not

I've got a page that will be loading a bunch of fairly high resolution images, as well as a full HD video. Is there a way to detect if someone is using cellular on their phone vs wifi, so I can use a ...
4
votes
1answer
191 views

How to avoid html tags in Google search summary

I am using CKEditor to let people describe their organization with all the styles and fonts. So when it saves in the database its like < gets saved as &gt and rest all you know for the html ...
2
votes
1answer
28 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache2 and has code in PHP and JS + HTML. Link to site: http://goldfaucet.xyz This is the code of my ad unit: I have an approved Adsense account that already was ...
0
votes
0answers
6 views

How to read a remote txt file with node.js and write contents to html document [closed]

After some research i've only come up with this HttpRequest with standard javascript. var txtFile = new XMLHttpRequest(); txtFile.open("GET", "http://remotewebsite.com/remote.txt", ...
4
votes
3answers
58 views

Lazy loading images (with data URI) and effects on SEO

I've seen this question: Lazy loading images and effects on SEO My question is very similar, except that I am using data-uri images like so: <img width="1100" height="340" class="img-responsive ...
1
vote
1answer
53 views

Why is hidden content not always indexed?

I've read several blogs discussing the 'hidden content' issue. This article experimented with several options. It concludes that Google DOES index hidden content. The issues is also discussed here. ...
0
votes
0answers
7 views

@media queries and regular css interactions [migrated]

I have a page with a side panel that has a position:fixed on my page. In the css, the following @media query to hide the panel if the screen width is below 1580px (which is most screens). @media ...
0
votes
2answers
12 views

Discrepancy beween Google Analytics and Adword Data

We are facing an issue with data discrepancy between what is reported by adwords and analytics console of google. Wanted to check if someone else has faced a similar issue and what could be potential ...
0
votes
1answer
35 views

What kind of attack causes a JavaScript 'out of memory' on the attackers device?

We experienced a strange attack yesterday. Our error log picked up the same 'out of memory' JavaScript error from a single IP address every 10 seconds. The requests came from 6 client ports on the ...
2
votes
2answers
775 views

Does Bing execute Javascript when crawling and indexing web pages (like Google)?

Some content on some web pages is only displayed with Javascript when a button is clicked (for example). We know that Google executes Javascript and is (very likely) to find this content, but what ...
0
votes
2answers
38 views

Legal notice that copying javascript isn't allowed

I've build a fun tool for one of our clients. This client is in a competitive business and likes to keep this tool to itself. As we all know, javascript is quite downloadable, and even obfuscated not ...
16
votes
5answers
31k views

Chrome refused to execute this JavaScript file

In the head of my HTML page, I have: <script src="https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.js"></script> When I load the page in my browser (Google Chrome v 27.0....
2
votes
1answer
46 views

Googlebot only seems to crawl my front page even when provided a different URL

I'm new to the webmaster world and trying to get my site SEO ready. It runs on javascript (AngularJS) and I set up all the things you'd need so that crawlers can read the site. I have the <meta ...
0
votes
0answers
16 views

Google Analytics events being sent before pageview. Getting “Bad Event Tracking Code” warning

I just noticed an alert from Google Analytics saying: "Bad Event Tracking Code: (not set) entry present in reports..." After doing a ton of research on this, it seems that some of my events are being ...
1
vote
1answer
30 views

Google Tag Manager and Data Layer under the hood

I am really newbie in all this marketing stuff, so I understand everything much better on the software layer. Phrases like : "Add this script to your page directly after body tag and it will work" ...
1
vote
4answers
107 views

Will auto refresh put additional burden on my web app?

I am trying Alfresco share Community Edition. It has a discussion site where user can ask questions. The problem here is alfresco does not provide auto refresh out of the box. The user has to refresh ...
3
votes
1answer
55 views

restricting Google Maps js API keys to just my domain

My site uses the Google Maps javascript API, so I'm using a "Browser key", which is plainly visible in my javascript to anyone who does "View Source". Google's documentation on Browser keys in ...
1
vote
1answer
117 views

Does a script tag really need a color defined?

I went to achecker.ca to test my website for accessibility issues. While it found no actual problems, it found about 100 potential issues. One of them is this: 1.4 Distinguishable: Make it easier ...
0
votes
0answers
23 views

Blogger Refused to execute script from because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

Hi I have a blogger site with custom domain and the javascript code don't work with the custom domain. When I use the blogspot.com domain then the javascript code works but when I change it to custom ...
1
vote
1answer
12 views

Is noscript mandatory for worldwide compliance page compliance?

I tested a random page of mine with javascript on achecker.ca four times: once using the "Stanca Act" guideline in the scanning options, once using the "Section 508" guideline, once using the "WCAG 1....
5
votes
3answers
3k views

expires headers and forcing cache-loading instead of 304?

so here is a little mystery. google analytics javascript somehow always loads from browser cache on F5 (in Firefox). i cannot get the same thing to happen with my own scripts. here are the headers ...
4
votes
1answer
50 views

Can I randomly change the page title for users while showing search engines a static title?

Let's say I wanted to make a website or series of pages where the title (or at least what appears on your browser's tab) alternates randomly each time it's loaded - just for giggles. I have a bank of ...
0
votes
2answers
57 views

How to allow selecting texts on the posts that are disabled from selecting?

Let me make clear. I added a html/javascript code on my blogger for disabling copying of contents. The code is : <script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></...
0
votes
0answers
12 views

It's 2016. How much JavaScript does Google understand? [duplicate]

Google deprecated its AJAX crawling scheme which seems to suggest that it can now index JavaScript applications. People now start testing the limits of what the bot can do with JavaScript, with ...
3
votes
0answers
45 views

Blocking the ISP's ads appearing after a possible DNS grab and redirect via port 53? [closed]

Whenever I switch on my modem and try to connect to the internet, my ISP redirects me to their website. I'm assuming they are grabbing DNS requests and redirecting them using port 53. A video of it ...
6
votes
2answers
78 views

Can I declare a duplicate page via javascript for google?

Most sources of documentation state that one can declare a webpage a duplicate of another by applying this tag on the duplicate page: <link rel="canonical" href="(absolute URL to original page)"&...
0
votes
2answers
28 views

Image generation from spreadsheet data

I work in retail. For promo sales we're given a spreadsheet with data containing the information about the product and its prices. With this data we're supposed to create sale tags. More specifically, ...
3
votes
1answer
32 views

Why does loading of an external “async defer” javascript code happen before page load?

Recaptcha recommends loading of its script like this: <script src="https://www.google.com/recaptcha/api.js" async defer></script> I added this to the head section of the html document ...
2
votes
1answer
24 views

Is it possible to change from domains to phrases in the URL bar?

You can change a URL like google.com to google.com/test without reloading the page by JavaScript. Is it possible to completely change the URL like from google.com to Welcom.To.The.Website using the ...
0
votes
0answers
7 views

How to Create a sitemap in MEAN stack? [duplicate]

Well I am creating a Application in MEAN stack but I don't know how to crate a sitemap for MEAN stack
2
votes
1answer
59 views

How should the back button behave when a site is built with AJAX and JavaScript?

I have made several websites and web applications, and still not sure of what the behaviour of the browser's back button should be. In some cases where AJAX and JavaScript technology is used, hitting ...
14
votes
2answers
5k views

Is this a good approach to image Lazy Loading for SEO?

For images loaded via AJAX, or that I don't want indexed, use the data-* attribute approach: <img data-src="path/to/image.jpg" class="js-lazy-load" /> The javascript maps the data-src ...
1
vote
1answer
31 views

Send pageview with Analytics.js to a second account

Using Analytics.js: <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) ...
2
votes
1answer
19 views

Can it be an issue to search engines if a primary image in a webpage is not declared with an image tag?

I was looking at my reports on google adsense, and on my mobile site, google reports that people see ads about 1% of the time. The stats are much more in my favor on the desktop site where the ads are ...
0
votes
0answers
16 views

JavaScript encoded links on an AngularJS framework…bad idea for Google?

I have a site where we're currently deploying code in AngularJS. As part of this, on the page we sometimes have links to 3rd party websites. Definitely Avoiding: We do not want to have followed links ...
1
vote
0answers
45 views

How to handle AngularJS hash bounce in Google Anlaytics?

Google Analytics append string is stripped off due to angular hash (#) bounce. when you click on it this link sub.f.org/fff/sign-up/plan, the following actions occurs: a link appears in browser as ...
1
vote
0answers
10 views

how to include images,scripts that are in default folder of views in web2py

I have an image in the default folder of views as an example in the below link (http://127.0.0.1:8000/cooking_recipes/default/images/nav-logo.png) and even some scripts in the same folder.that is ...
3
votes
1answer
55 views

Structured Data Tool doesn't see JavaScript rendered content

Some structured data (namely price) of my page is rendered by JavaScript. According to fetching results in Webmaster tools Googlebot sees and renders it perfectly. However the structured data tool ...
3
votes
1answer
1k views

Can I reposition AdSense ads with Javascript (for responsive purposes)?

I have a responsive blog where ads are displayed in the sidebar. On mobile devices however, the sidebar is pushed to the bottom below the posts. So what I'd like to do is move the ads from the ...
2
votes
4answers
6k views

Website or service to view a page without Javascript [closed]

Is there any website or service that allows you to submit a URL and displays the corresponding page with Javascript stripped out/disabled? Clarification: This is to send a link to someone else to ...
4
votes
1answer
77 views

Does Googlebot trigger onclick events and index the resulting content?

I've found many topics about Googlebot following links and executing ajax queries but none that tell me whether onclick events would get triggered and results crawled. Let's say that an image is ...
0
votes
2answers
90 views

How should I access a variable after an async script is loaded?

I have a setup tag for a Tracking service called Clicky that loads asynchronously on every page. I need to access "clicky" variable from another tag, which is only accessible after setup async script ...
1
vote
2answers
152 views

How to show only disqus thread-votes and nothing else

I want to show just the thread vote portion of the whole Disqus commenting system. How would I go about doing it? Here is an example of what I am asking for: Could I possibly iframed the rating ...
2
votes
5answers
91 views

Prevent robots from indexing specific word

I need to prevent robots from indexing specific word on my webpage. Here is what I did: Let's say I need to prevent JOHN GALLOW from being indexed. For that purpose, I wrote this pararaph: Over the ...
1
vote
2answers
410 views

Does adding live chat script to a website affect its SEO?

I have a client who has added a live chat script just before his /body tag. The live chat script uses WebSockets for communication with servers. However, it appears his SEO traffic decreased by a good ...
8
votes
7answers
1k views

Can anyone list some real examples of 'HTML5' being used in the wild?

I am using HTML5 in the same way everyone seems to be using it these days, meaning: HTML5 tags, Canvas / 3D / javascript and CSS3. I am struggling to find examples of sites that are using these ...