Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 66447

Re: var location = window.location.href;

$
0
0

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:

 

  1. I've had issues with some browsers using window.location and have found document.location to be more reliable.
  2. 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.


Viewing all articles
Browse latest Browse all 66447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>