JavaScript: URL site text -> myVariable

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
Hi. I had a problem the other day which I partially resolved. The major reason it still isn't working is because I am trying to use document.links[] in a different domain to my script.
I need to be able to either simulate a link click on a different site, or to get the url of that link into my own page and simulate it from there.

Currently, I am able to get the page containing the link in an iframe, but cannot use
Code:
window.frames[0].document.links[0].click();
due to the iframe being of a different domain. If I could somehow get JS to store the hyperlink URL I would be able to achieve this. Even if it means getting the ENTIRE page source and filtering out all non-links I would be able to get what I'm after.


Is anyone aware of a method I may be able to use?
 
Top