0

I am attempting to link from my website to an outside website but the information that relates to the user is in the middle of the outside page. Can I make the link take them to there?

Thank you in advance

Robin
  • 372
  • 6
  • 18

2 Answers2

2

If that outside page has an anchor tag in or near the content you wish to link to, yes.

<a name="releventContent">

If the above code (or something like it) is present in the outside page, you can link to it from your site like so:

<a href="http://www.outsidepage.com#releventContent">clicky</a>

idrumgood
  • 4,904
  • 19
  • 29
1

I can suggest you a dirty trick that might work or not too. Steps

  1. Open the new link in an IFrame.
  2. Create a javascript function that will accept the string to search as parameter.
  3. On the bodyload call that function that will search for the text in the source file.

Some SO links

Filling an IFRAME with dynamic content from JavaScript

Read IFrame content using JavaScript

Community
  • 1
  • 1
  • That is a good idea but I am very limited in what my CMS allows me to do with javascript but ill remember that. – Robin Dec 08 '11 at 19:57
  • anyways vote up and accept the answer that helped you. It will be appreciated. –  Dec 08 '11 at 19:59