tags:

views:

35

answers:

3

Hello,

I am only able to view the javascript file of website. How do i edit it? I tried everything like double clicking the line that i want to edit etc. But still it doesn't let me edit it. I am on Script tab. If i move to HTML tab i am able to edit HTML by clicking on Edit but i am not able to edit the javascript.

Thanks in advance:)

+2  A: 

In the Firebug console, you can type in new javascript. So just redefine functions or variables as needed through that.

jalf
+1  A: 

You can't do it. You should use javascript console to redefine functions.

Riateche
+2  A: 

alt text

You can use the Firebug Console tab to write Javascript. I use this quite a lot of rapid prototyping of code before I integrate it into my projects. When you use the Console, javascript is executed in the context of the current page. Therefore, and scripts that are currently defined for that page, can potentionally be redefind. E.g., in the Console window, I could do this:

$ = function() { alert("Whoops"); }

...and that would redefine the $ function used by JQuery.

Matthew Abbott