escape(parent.document.referrer)

G

Giuseppe Dini

In a html page in a frame I have the following code:

<!------- Begin Stat code ------------->
<script language="JavaScript">
var path = 'http://www.mysite.com/contvb.aspx';
document.write('<img height=1 width=1 border=0 src="');
document.write(path);
document.write('?referer=');
document.write(escape(parent.document.referrer));
document.write('&rsl=');
document.write(screen.width+"x"+screen.height);
document.write('&dp=');
document.write(screen.colorDepth);
document.write('">');
</script>
<noscript>
<img height=0 width=0 src="http://www.mysite.com/contvb.aspx">
</noscript>
<!------- End Stat code ------------->

the contvb.aspx save a record for each visit to the html page.
And usually everything is ok (there is a field for "referer", "rsl", "dp"),
but rarelly when I look at the record I find something strange:

"<noscript><img height=0 width=0 src="

How does it happens? Can I solve the problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to treat an input data as variable? 4
Help With a Script 5
On-air script 0
Help with Visual Lightbox: Scripts 2
referer in a frame 3
Help with code 0
Help with my responsive home page 2
Image on header 2

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top