HTML DOM console trace()
This console.trace()function shows the path that the code took to reach a specific point.
Syntax:
console.trace( label )
Parameters:This approach takes only one input, which is called the "label."
This console.trace()function shows the path that the code took to reach a specific point.
Syntax:
console.trace( label )
Parameters:This approach takes only one input, which is called the "label."
<!DOCTYPE html> <html> <head> <style> h1 { color: green; } </style> <title>Page Title</title> </head> <body> <h1>Propertutorials</h1> <h2>console.trace() Method</h2> <p>Press F12 to view the result</p> <button onclick="Function()">Start Trace</button> <script> function Function() { OtherFunction(); } function OtherFunction() { console.trace(); } </script> </body> </html>