1

How would I go about if I wanted to make a javascript code that will detect any script being runned by the web console?

I know that if I write this code:

if (window.console && window.console.chrome) {
//is open
};

I will be able to see if the console is running. But I want to detect if any code is being runned.

3
  • 1
    Possible duplicate of Detect if any JavaScript function is running Commented May 25, 2017 at 18:33
  • 1
    No, you can never detect what the user is doing with your page on his computer. Commented May 25, 2017 at 18:40
  • what kind of script are you considering here? a script that access your javascript funcions or a script that does some variable assignment ? eg: global.func(), where global is present in your code or var x =1 ; Commented May 25, 2017 at 18:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.