You can get the name of the current namespace using this trick, which uses :: creating a character with names for you in the current namespace:
(namespace ::x)
You probably don't want to use this value for anything, because if the code is compiled, the internal representation will change. If you want to live in danger, then in the browser you can access the js object, which contains a namespace like this:
(reduce (fn [ns n] (aget ns n)) js/window (clojure.string/split (namespace ::x) #"\."))
source share