I mean given an url, I need to write a function get so that content= get(url) The content needs to contain the content of the website url.
say domain.com has a index.htm, now when I say get("domain.com") it should retrieve the content of index.htm e.g. <html> <body> content of domain.com/index.html Code (markup):
If the script is on a page obtained from domainA.com, with an iframe from domainB (like AdSense ads), your javacript CAN'T get elements from domainB. EDIT: Sorry I didn't read your last post. So, do you want to get the url (as said on thread title) or the content (as said on your last post) ?