Originally Answered: I need to make alittle script , That could capture a specific code upon given it the link via java script?
innerHTML works perfectly for div tag
I used an iframe to store the page so I can access its content, but for security reason you can not access page information outside yours, so here what we get on Firefox Error:
"Permission denied to get property HTMLDocument.getElementsByTagName"
Hope you advance further in your research, you can try another good features of Firefox which is Grease Monkey, this add-on allows you to run a specific code when you access certain page, so you can use it to add your code to the page, so the information are accessed fromt the pag itself, the you click you button and it it can for example erase every thing in the body tag, then replace is by the code, this allow you to avoid reloading the page to show your content or more silent you neast you result somewhere. Grease monkey is more suitable than the other method which consist on pasting the code in the address bar then add void(0); then press enter, it has the same effect but for a long code this is not good.
To be able to perform all necessary task inside a web page you should learn a little bit about HTML DOM and DOm manipulation, http://www.w3schools.com/htmldom/default...
So I warn you this won't be a little script, let's say a medium, but one function will do it.
If you need my help I'll be available.