Click to See Complete Forum and Search --> : location.href...?


vidyaraghav
10-01-2003, 04:27 AM
Hi,
I just happened to see this statement in some asp code

function x(y)
{
str="download.asp?date="+y;
location.href=str;7
}

What is the meaning of specifying 7 after the href is changed to the said file with the date parameter

Bullschmidt
10-01-2003, 04:46 AM
Yes, it kind of does look like a typo especially since it is after the ; which is supposed to be the end of the line in JavaScript. Maybe it was intended to be a comment, but if so, should have been preceded with //.