Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Javascript redirect

Thread Tools

Javascript redirect
Posts: n/a

I have a script called rd.js stored in

It contains one line

this.location = ""

Now, many websites access that script. Any website that access that
script will be redirected to

The problem is I don't know which websites access that script. Because
when I check the webstats, the referrer is not noted due to the

For example,

If visitors click
and then click a link to, then webstats
would recoqnize that the referring page for is

However, if a person go to

and get redirected to

redirects to

the referrer is hidden.

If I check the referrers in webstats, I wouldn't see

So I don't know how many visitors to come

It happens that is in the
same domain for simplicity sake. What about if it's in a different

In other words, if I use redirect, traffics coming from will not contain referrer
information as if traffics coming from a link in

How should I modify rd.js so that the
knows that the visitors came from

Also, why do the javascript in
doesn't work? I basically try to make a link point to and use javascript to click on the link.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request.UrlReferrer Is Null IN IE 6.0 when location.href(Javascript) is used to redirect ASP .Net 7 10-18-2008 07:57 AM
Response.redirect does not redirect from .aspx page =?Utf-8?B?VHJveQ==?= ASP .Net 3 10-15-2008 09:07 PM
button won't redirect child Iframes with javascript dh ASP .Net 2 08-22-2004 03:21 AM
Redirect to secure FTP site via response.redirect Ron Howard ASP General 2 08-11-2004 07:40 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM