Can javascript be inserted into Google Chrome's “Check item”?

If I click “Inspect an item” on a page in Google Chrome, is there a way to add something like this (by clicking “Edit HTML”) to add a mouse effect to the “a # link” element on the page

$("a#link").mouseover(function() { $('div.linkcontents').slideDown("slow"); }); 
+4
source share
2 answers

You don’t even need tools for developers, how to simply enter it into the address bar of the browser? Like this:

 javascript:$("a#link").mouseover(function(){$('div.linkcontents').slideDown("slow");}); 
+6
source

Chrome is not an editor, so you cannot just embed HTML code. However, since javascript is a scripting language, you can go to the javascript console under the tools in Chrome, where you can run javascript code, although it will not save it on the website.

0
source

All Articles