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)

0
votes
1answer
81 views

Best practice for scroll-up web page

As was pointed out in a question asked earlier, Google will not recognize when the DOM is altered via JavaScript after initial page load to start at the bottom and scroll up rather than down. ...
0
votes
3answers
97 views

How does Google treat multiple page title matches from same site?

I have several non-duplicate page titles that match a search query, say for the query 'stackexchange': <title>John Smith Popular Content</title> <title>John Smith ...
4
votes
1answer
63 views

Tracking dynamic events in Google Analytics?

I'm trying to implement dynamic events in my platform to trackearlos. My question is: For generating these events and who are trackeados in Google Analytics to put the push of the "onclick" to do ...
1
vote
1answer
41 views

I have multiple versions of the same landing page. How can I tell Google Analytics which is being viewed?

I'm sending a link to a landing page to a number of different companies and need to be able to tell Google Analytics which company is viewing the page and when. I of course have my original link to ...
5
votes
2answers
88 views

SEO & Return false on click event

I have a dropdown menu and I'm a trying to make it function more logically on touch devices, it currently following the link. On desktops the dropdown menu is displayed onmousehover and when the menu ...
4
votes
1answer
340 views

Is it necessary to specify content-type in http response header?

Except for the html document, currently all the files (css, javascript and images) served from my web server do not specify the content-type in the http response header. I happen to notice this as I ...
0
votes
0answers
12 views

Money exchange field [duplicate]

It was on hold for over 1.5 hour even after I made changes, so here again. I am making a money exchange website. On my homepage there will be 2 fields, The first field is a Bitcoin field and the ...
2
votes
2answers
11k views

Do pop-up ads have a negative impact on SEO?

I was observing Google results for months to determine if pop-up ads have a negative impact on SEO. Regarding my observations, sites without pop-ups usually get ranked better. Actually, that doesn't ...
1
vote
1answer
54 views

Effective upload to backend?

Let's say I have a website with frontend and backend. The website allows users to upload some data ranging from hundreds of MB to GB. How do you effectively upload this data? The easiest way would ...
3
votes
1answer
383 views

How to check if linked JavaScript and CSS files are being used?

I've inherited a website that seems to import every JS and CSS framework my predecessor could think of. Is there an easy way to analyze the site and determine which ones are actually being used? Or ...
1
vote
1answer
343 views

how to retrieve img alt text with jquery or javascript? [closed]

Which is the code with which we can retreive alternative text of image: It is a Cataloge with clothes. Dressers, Shirts, Skirts e.t.c. in front page of a site. The featured images of the categories ...
1
vote
1answer
137 views

No cache and Google AdSense performance

I'm developing a page where I need to avoid JavaScript caching by browser. I've added this header: <?php header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); ...
0
votes
2answers
175 views

Google Analytics and Whos.amung.us in realtime visitors, why such an enormous discrepancy?

Since years I use in a site both Google Analytics and Whos.amung.us, both Google analytics and whos.amung.us javascripts are inserted in the same pages in the tracked part of the site. In real-time ...
0
votes
1answer
58 views

Will Google treat this JavaScript code as a bad practice?

I have a website that provides a custom UX experience implemented via JavaScript. When JavaScript is disabled in the browser the website falls back to CSS for the layout. To make this possible I've ...
0
votes
1answer
153 views

Uploading a file automatically for speed test?

I am building a Web UI for a device for internet connection and one of the requirements in it is a speed test. I know the basic concept of how speed test works. A file is downloaded for a limited time ...
1
vote
1answer
77 views

Google Analytics Not tracking data correctly IP-address issue?

I have developed a small site for a client and the site has been placed inside a <iframe> at the clients site. The GA-script I'm using looks like this: <script type="text/javascript"> ...
0
votes
1answer
202 views

Segment subdomains with Google Analytics?

So, when a website has multiple subdomains: www.example.com foo.example.com bar.example.com What is the best way to use Google Analytics to segment the data? I would prefer have access to 'All ...
0
votes
1answer
62 views

Suddenly my server reject all POST requests

Just go to http://meet-romance.com/test.htm. The script there is simple, it's a form with a button: <form action="test.htm" method="post"> <input name="Button1" type="submit" value="button" ...
0
votes
1answer
208 views

A POST request on a page with HTTPS is done automatically in HTTPS?

If I make a request to page.php (AJAX) with JavaScript from a HTTPS page, the request is automatically made ​​page.php directly with HTTPS or HTTP? If HTTP, how to send a request (to the same domain) ...
0
votes
1answer
485 views

What does it mean to infect people with silent java drive?

I've got a weird contact message through my website, claiming they have found a security vulnerability and wonder if I have a bug bounty program. The details they shared: Only what I can say is ...
1
vote
2answers
334 views

Customising Google Maps breaks highway label blocks

I'm trying to customise a Google map to use shades of a particular colour. It's working nicely except the blocks that contain major road names / numbers is illegible. I've figured out how to target ...
-1
votes
1answer
118 views

How to display a logo in a printed web page that doesn't appear on-screen? [closed]

I have sales report I want to print with a logo, but I don't want it shown on the screen. I'm currently trying to use JavaScript to print a particular DIV from a page: <script ...
2
votes
1answer
121 views

Schema.org's WebApplication: for web applications or references to web application?

Assuming one offers an online service on a page using HTML5 + Javavascript. Technically speaking, it can be considered as a web application. Is the WebApplication itemtype appropriate for this page ...
1
vote
1answer
254 views

What could be causing this long waiting time on page load?

What could be causing a 1.18s wait time when my page loads? Just to make sure I did not have any conflicting or parallel scripts loading, I completely deleted all the script on my home page and ran ...
1
vote
2answers
39 views

Read-only cross origin domain request

Is it possible to allow read-only access in a CORS header? I want JS from two websites to be capable of verifying each other, but not altering each other.
0
votes
1answer
85 views

Is it safe to manipulate with DOM (using JavaScript) to move up in the search results?

I have some text written for SEO purposes and it is located right after the opening body tag, so it is at the top of the page. That doesn't look great so this text is moved to the bottom of the page ...
2
votes
2answers
50 views

May site A or B get banned/penalized if from site A I use window.open to site B?

As many advertising systems open popups, I was wondering what if from my site A I make (randomly, I mean not every time) a window.open(B)? Could one of the sites get banned?
2
votes
1answer
224 views

Can minification in Google PageSped service break Adsense?

A few days ago I applied for Adsense account. But it was rejected due website being down. Here is the full message: We did not approve your application for the reasons listed below. Issues: ...
0
votes
1answer
166 views

Strange: Google indexing onload generated content?

I've noticed in Google's results page that my website's listing details (i.e. bellow the link) displays content that is only generated during the page onload function. This surprised me as I thought ...
0
votes
2answers
177 views

Form validation - security and input specification

So I'm working on a register form and I have four fields: name, username, email and password. I pick up the values of these fields in jQuery and depending on if all the fields are filled, I pass them ...
0
votes
2answers
163 views

Best way for beginner to learn JavaScript and PHP coding [closed]

I have a job interview coming up and in job description it states I need to be able to write JavaScript and PHP coding. Now its been a while since I did JavaScript and PHP coding. I am planning to use ...
1
vote
2answers
2k views

What service could be adding NewRelic?

At the bottom of my web pages is: <script type="text/javascript"> if (!NREUMQ.f) {NREUMQ.f=function() {NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script"); ...
0
votes
1answer
21 views

Indexing a page in which the content is discovered in a map

We want to improve our site's SEO. The page is a GWT (javascript based) web page and its content is discovered through a map or a GPS. Now we have just a normal landing html page, and the map and ...
1
vote
1answer
113 views

How to Trigger GA Event for Every Single Pageview (of a certain type)

Thanks, edited my question. I need a reliable way to capture a GA event whenever the GA tracking code fires for a particular page only. Doing so because we want to assign a dollar value to simply ...
0
votes
0answers
34 views

Will the jquery.jplayer render the videos from Akamai

Currently I'm using jquery.jplayer with which I'm able to play the videos which are in my local machine. Will this .js be able to render the videos from Akamai? Server or do we need any script change ...
1
vote
1answer
51 views

Redundant Parameters in Google Analytics JS Snippet

Google Analytics provide this snippet of code to copy and paste to a site: <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ ...
2
votes
2answers
223 views

How to do a JavaScript redirection to the same page without hurting my SEO?

I did something that does that when people land on my page for the first time, they get a JavaScript redirection to the same page, but with PHP $_GET URL queries, then this page redirect back to the ...
0
votes
1answer
50 views

Is it possible to have Google index one page with one URL and have it link to another URL?

We want to tell Google to crawl a content heavy page but list a link to a much more performant JavaScript version of the page. Is this possible? I.e. Give Google a sitemap, then put canonical tags ...
0
votes
1answer
64 views

What is the impact on SEO for having a div that is removed by JavaScript

What, if any, impact would there be for having a stripped down view of my content in a <div> that is quickly replaced by [a much richer view] via JavaScript? Would this be any different than ...
0
votes
1answer
190 views

Bounce rate nearly 100% in Safari AND Firefox? [closed]

Our website has a bounce rate of nearly 100% in both Firefox and Safari, and around ~40% in all other browsers. The bounces span all versions of each browser and both operating systems. I cannot ...
1
vote
2answers
502 views

Is there any way to get data from Google Analytics Per Page Visit

I am using Google Analytics to track visitors of my website. I also want to track IP address of the visitor but Google doesn't allow this. Now I am thinking that I must save IP address of the visitor ...
2
votes
1answer
297 views

Google follows JavaScript string as relative path - produces 404 error

This is my first question on here so I hope I'm not breaking any rules, but I have a problem: I have a site that uses an Adobe Site Catalyst for its online analytics. The suite supports tagging ...
1
vote
1answer
124 views

sku code as description in Google Analytics

In the Google Analytics ecommerce tracing script you must provide for every item and SKU code. I have this code for every product I'm selling and up until now I have always provided it in the _addItem ...
1
vote
2answers
250 views

How secure is a static CAPTCHA?

I have seen some webmasters using a CAPTCHA that doesn't change at all. And many of them use JavaScript to validate these value. For example: if(captchaCode != "4ERJZ") Since most of the web ...
1
vote
1answer
89 views

Using Google Tag Manager to define the page type

So, I am looking to add a tag that I want to use for A/B testing, however we don't have a page-type URL structure. Fortunately the tool can recognise page type if I pass it by Javascript. <script ...
9
votes
5answers
7k 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 ...
1
vote
1answer
85 views

How to add button on each MediaWiki article?

I would like a button to appear on each article on my MediaWiki site, to make it easy to flag articles that should be reviewed. When the button is clicked it should add the category "review", and if ...
2
votes
1answer
68 views

Is it acceptable practice to change the behavior of old HTML tags?

In my app I need to display some maps. So I use Leaflet.js to do so, but to simplify my HTML I have used a <map> tag to do so. Is that acceptable, or should I avoid doing this?
0
votes
0answers
14 views

Strange Javascript code in my html pages [duplicate]

I've been warned up today by my friend who owns a website I made for him. I've just found that many files from the template directory have been modified today and in every of them, I can find this ...
3
votes
1answer
145 views

rel=“nofollow” being removed with javascript, why?

I was looking through the blog comments of an Alexa top 20,000 site, and I noticed something odd: when a comment is viewed in the source (or in Firebug with JS turned OFF) the author's name is written ...