Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
195
rated 0 times [  197] [ 2]  / answers: 1 / hits: 39483  / 12 Years ago, fri, july 13, 2012, 12:00:00

Can I run my own javascript code in a browser when viewing a page?



For example I have page index.html. In that I want to run this javascript function



function myFunction()
{

alert(Say Hi);

}


I want to call this function through some browser interface because I don't have access to the source code of the web.


More From » browser

 Answers
18

Yes. Just how depends on which browser you're using:




  • For Chrome and Safari you'll use the built-in Web Inspector—see the instructions on this page.


  • Firefox has the built-in Web Console, but the more advanced add-on Firebug is very popular.


  • The Internet Explorer equivalent is Developer Tools, which you can launch with F12.



[#84283] Thursday, July 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
armandoh

Total Points: 208
Total Questions: 94
Total Answers: 112

Location: South Sudan
Member since Sun, Jul 11, 2021
3 Years ago
;