Getting the Named Anchor using ColdFusion
问题 How can I get the URL using ColdFusion? I tried the following but it did not return the Named Anchor. For example http://www.makeup.edu/test/#abc <cfdump var=#cgi#> 回答1: You can't, 'cause although it is in the URL, it is only meant for the client. It will not be sent to the server, therefore you can never find that in the CGI scope. 回答2: As Henry says, you can't get them with ColdFusion because they are never sent with the request. What you need to do is to pull them out with Javascript