Webpage redirect solved

  • Thread starter Thread starter Greg Curie
  • Start date Start date
G

Greg Curie

Hi

I hate the world sometimes. My web page redirect didn't work because I was
thinking about "properties"

<script>
location.replace = "newpage.html"
</script>

When I needed to be thinking about a call.

<script>
location.replace("newpage.html");
</script>

:(

This is why programmers who, after spending hours and even days, on a little
problem of their own making, end up gravitating toward tools which are noisy
and picky, rather than those which accept anything and are very quiet...
 
Hi Greg,

You need the MS Debugging tool for IE. BTW it should have been obvious as
replace is a verb not a noun. I know it happens to me too. lo.
Regards.
 
Hi Greg,

You need the MS Debugging tool for IE. BTW it should have been obvious as
replace is a verb not a noun. I know it happens to me too. lo.

Yes, because God knows all programmers everywhere always write code which
is grammatically consistent, and no programmers anywhere ever abuse the
English language when choosing identifiers. So if the programmer has
chosen a verb, you can bet it's a function, and if the programmer has
chosen a noun, you can bet it's not a function. ;-)

- Logan
 
Back
Top