Ryan, you can use the escape () function, e.g.: var destination = 'http://someurl.com'; destination += '?return_page=' + escape (document.location); -Joel