From what I gather this is not a ColdFusion question so I'm not sure why you have two result for coldfusion vs. html. Two things:
- I've had issues with some browsers using window.location and have found document.location to be more reliable.
- I've run into descrepancies with some browsers (IE) between document.location and document.location.href. To get around this I use logic like this:
this.settings.self=document.location;
...
if(this.settings.self.href && (typeof this.settings.self.href==='string')) {
// set to string property (IE fix)
this.settings.self = this.settings.self.href;
}
Hope one or both these help.