How to Replace EVAL
- 1). Open your Javascript code.
- 2). Copy the Eval command you want to replace. It will be formatted “Eval(COMMAND).”
- 3). Begin a new line. Type “Replace()”.
- 4). Paste the Eval command within the parentheses. It will look like “Replace(Eval(COMMAND))”.
- 5). Add the string you wish to replace the Eval with after it, in this format “Replace(Eval(COMMAND),STRING)”. You can also replace one Eval command with another, like Replace(Eval(COMMAND1),COMMAND2)”.
- 6). Save the JavaScript code.