where did the other/ come from ?

Posted by Bunny Rabbit on Stack Overflow See other posts from Stack Overflow or by Bunny Rabbit
Published on 2010-03-31T07:27:41Z Indexed on 2010/03/31 7:33 UTC
Read the original article Hit count: 286

Filed under:

why some thing like this

url="http:/"+"www.pathname.com"+"/"+"anotherString";

turns into http://www.pathname.com/anotherString. Notice the // after the http:.

© Stack Overflow or respective owner

Related posts about JavaScript