The eval not working in Edge Browser too

Chien, John K 1 Reputation point

I have following code:

var callF = "window.opener.<%= callback %>('" + selectedValue + "')";

The callback is "loadContact".

Therefore callF = "window.opener.loadContact(289834)";

It works in IE, but not EDGE

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,236 questions
{count} votes