Extract external javascript query string/anchor value: file.js#foo=bar
        Posted  
        
            by jfroom
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jfroom
        
        
        
        Published on 2010-04-20T16:02:43Z
        Indexed on 
            2010/04/20
            17:13 UTC
        
        
        Read the original article
        Hit count: 351
        
http://mycloud.net/js/file.js#foo=bar
I'm trying to load a cross domain javascript file, and want to pass a variable along on the query string. I have seen the above '#' method used, but am unsure of how to extract the 'foo' value from within the file.js. Any clues how to handle this without the aid of server side help?
Thanks.
© Stack Overflow or respective owner