How to Replace EVAL

104 25
    • 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.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.

"Society & Culture & Entertainment" MOST POPULAR