On Jun 10, 7:00 pm, Jeenu <[email protected]> wrote:
> On Jun 10, 7:57 pm, "Honza (Jan Odvarko)" <[email protected]> wrote:
>
> > Jump to the HTML panel, find your element and click on the attribute.
> > An inline editor should popup and you should be able to change its
> > value.
>
> I know. As I understand it, DOM structures are created in memory when
> the page is parsed. In my example, the click event for the said button
> would have already bound to the function object checkTime('20'). Thus
> I don't think editing the HTML later via. Firebug wouldn't have any
> desired effect. Or would it?
For me it works. I have tried a page with following button.

<button onclick="alert('20');">click me</button>

Every time I change the number '20' and click the button, I am seeing
the new value.

> What I was thinking instead was to directly manipulate the DOM tree so
> that the click on the button would pass a manipulated value, say 17,
> to the function.
Yes this should be also possible, but you need a variable. For
instance

<script>
var myValue = 20;
</script>
<button onclick="alert(myValue);">click me</button>

Then you could change the 'myValue' variable directly in the DOM.

Honza

Can I do that from Firebug? Please correct me if I'm
> wrong here.
>
> Thanks
> Jeenu

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to