Replacing all spaces in URL to %20
for (attrname in obj2) { obj1[attrname] = obj2[attrname]; }
self.document.location.hash self.document.location.hash.substring(1)
How to Drag and Drop in JavaScript