View Single Post
  #1  
Old 04-04-2009
C^2 C^2 is offline
Child
 
Join Date: Mar 2008
Posts: 70
Rep Power: 2
C^2 is on a distinguished road
javascript and DOM

Hey

I'm having a bit of trouble with a firefox extension I'm trying to write.
I want to get all the data from the web page that the user is viewing.

I don't understand what I am doing wrong:

Code:
//this is to get the data from the tab selected
var links = gBrowser.selectedBrowser.contentDocument.getElementsByTagName("body");
//displays this data
alert(links);
Reply With Quote