You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 49486 (Thread)

# The proper JavaScript way is
document.location.assign(bStr);

location is a read-only string in JS 1.0 and an object in JS 1.1 - so assigning a value to it should never work :(

You should be using window.location = foo;
(, Fri 12 Apr 2002, 8:49, archived)
# Ahh yeah
it probably would be better to read the standard at some point instead of looking at other peoples code ;)
(, Fri 12 Apr 2002, 8:55, archived)
# Well worth it with JavaScript
It turns out to be quite an nice language if you read the docs.
(, Fri 12 Apr 2002, 9:19, archived)
# So long as you
can figure out what each browser likes you to do, it's lovely.
Sodding Netscape 4...
(, Fri 12 Apr 2002, 9:23, archived)
# Well
seeing as I come into daily contact with 4 completely different browsers, client side scripting is something I hate :) (as you can imagine, i'm sure)
(, Fri 12 Apr 2002, 9:35, archived)