javascriptfunctiongoogle-chrome-devtoolsdeveloper-tools

Calling a Javascript Function from Console


In Chrome's JavaScript console, how do I call a function that belongs to a .js file included in the webpage I am viewing?


Solution

  • If it's inside a closure, i'm pretty sure you can't.

    Otherwise you just do functionName(); and hit return.