How do we do Javascript encode for Function in Javascript

How do we do JavaScript encode for below line
window.opener.document.forms["<%=FormName %>"].elements["<%= ControlName %>"].value="<%=FullName %>"