Possible Duplicate:
Creating a new Location object in javascript
If the user inputs a string that is a URL, what's the easiest way to turn it into 开发者_开发技巧a Location object (like window.location) so I can use methods and properties like obj.hostname?
Don't know if you can create a Location object, but this article explains how to use an anchor tag for the same effect:
http://james.padolsey.com/javascript/parsing-urls-with-the-dom/
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论