This article will show you how to add jQuery in the console window of the browser. You will be able to execute or access any jQuery command or function to manipulate page content with jQuery once you add jQuery in the console window.

1. Open Console window in your browser either Firefox or Chrome.

console window in google developer tools

2. Enter below script

var jq = document.createElement(‘script’);
jq.src = “//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”;
document.getElementsByTagName(‘head’)[0].appendChild(jq);

3. It will create a script element which has a source as jQuery file from Google API.

4. Enter your jQuery code and it will work.

 

About Swapna Lekshmanan

Avatar for Swapna LekshmananSwapna is a person obsessed with designing the web. She just keeps looking for chances to modify the websites to give them a better look and feel. Also being the Co-founder at TechMuzz, she is responsible for its unique aesthetics.

Pin It on Pinterest

Share This