er... couldn't you just do something like...

var speaker_div = new Element('div', { 'id': 'my_div', 'style':
'width: 1px; height: 1px;' })

document.write(speaker_div)

?

On Wed, Apr 23, 2008 at 5:44 PM, broberts <[EMAIL PROTECTED]> wrote:

>
> Is there a way to get a reference to the BODY tag node in the DOM if
> it has no class or ID attribute by which to select it?
>
> I want to insert a dynamically created node right before the closing
> body tag.  Here's where I was going, but I'm not sure how to reference
> the BODY tag node.
>
> var body_tag = ?
>
> var speaker_div = new Element('div', { 'id': 'my_div', 'style':
> 'width: 1px; height: 1px;' }).insert(body_tag, { position: 'bottom' });
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to