'Escape'에 해당되는 글 1건

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?


--

Giuseppe

출저:http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.javascript/2005-07/msg00149.html
Posted by 아로스
1

아로스

달력

05-18 20:44