/ Published in: JavaScript
Strips the "http://" from the document path
Expand |
Embed | Plain Text
function currentDoc() { var doc = document.location.href; var end = (doc.indexOf("?") == -1) ? doc.length : file_name.indexOf("?"); return doc.substring(7, end); }
You need to login to post a comment.
