Edge Developer Tools - Run JavaScript Code

Q

How to run JavaScript Code with Edge Developer Tools?

✍: FYIcenter.com

A

If you want to run some JavaScript code to interact with the Edge browser, you can use Edge Developer Tools to do so as shown in this tutorial.

1. Run Edge and go to https://facebook.com.

2. Press F12 key or click "... > Developer Tools". You see the Developer Tools screen displayed.

3. Click "Console" tab. You see the browser console displayed.

4. Enter the following JavaScript code. You see a dialog box displayed.

var title = document.getElementsByTagName("title").item(0).textContent;
alert(title);

Edge Developer Tools - Run JavaScript Code

 

Edge Developer Tools - Debug JavaScript Code

Edge Developer Tools - Emulate Mobile Device

Edge Developer Tools

⇑⇑ Edge Web Browser Tutorials

2021-03-07, 2120🔥, 0💬