0

I know this question has been asked before and already has a answer. But none of the solution seems to be working for me.

I have a html file. Inside of it I have written some javascript code. When I open the javascript inside scripts panel in Firebug, I am not able to edit the script . How can I do it?

2 Answers 2

2

Are the objects accessible from the console? Are you trying to edit functions?

If they are global functions, you can edit them using:

window.functionName = function () { };

I usually edit global objects using the Command Line:

global.param = 1;
Sign up to request clarification or add additional context in comments.

3 Comments

yes i am trying to edit a function. Basically inside a function there is one line which is commented. I want to uncomment it.
and where to add this statement ?? window.functionName = function () { };
in the "console" tab of firebug, there's an input box in the bottom.
1

The Script panel currently (Firebug 1.12.7) doesn't allow to edit the JavaScript. See issue 5083 in the Firebug issue tracker.

Though what you can do is to edit global functions within the Command Editor. It is available inside the Console panel by clicking on the arrow symbol (enter image description here) at the right side of the Command Line.

You can access and overwrite the global functions and variables within it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.