Hi

There are two problems that i just dont know how to solve.

1. I want to write an html code parser(on javascript) to cut off everything i dont need in widget. But before i need page's code. How do i copy target web page's source html code to javascript string(without showing web page on screen)?
2. There is a javascript on the web page i want to use. I can copy all included scripts from the page's sourse to my html changing their location from relative "/jscode/..." to actual "http://www.site.com/jscode/...", but scripts i need seem to be relative themselves, or there are some access issues i just cant locate, basically if i launch html page(even with actual paths to scripts in it) from local machine scripts dont work(it opens explorer with root directory). The question is: can i tell the browser that i am located on the target site not showing it on screen?