[thelist] Using Location.href Vs location.replace

Scott Webster pippen at bigpond.net.au
Tue Mar 18 02:27:52 CST 2003


hi guys

Where is the benefit in using     location.replace(url)

as opposed to     location.href = url.

AFAIK, usage of .replace is browser-dependant. Why 
wouldn't you just use location.href? Is there a performance 
benefit in using .replace?

thx



More information about the thelist mailing list