• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HTML Hyperlinks, how do i....?

letsgetsilly

Senior member
I'd like to create a hyperlink from one page that transfers to a position on another page.

For example, I'd like to create a link to a football team's latest scores, where the latest scores are located somewhere near the bottom of page "footballInfo.html"

So something like...

<a href = "footballInfo.html/#scores"> ???

Thanks for any help!
 
put <a name="scores"> where the scores are

then your link will be <a href="#scores">View Scores</a>

edit: if the scores are on a different file, then your link code is correct <a href="filename.html#anchorname">link text</a>
 
That works great, thank you. Now I have a different problem.

I need to also pass a variable in the URL to the page. I've tried a couple of different methods without any luck. I can use the context if necessary but I would prefer to do it this way.

Here is the pseudo code of what I'm attempting:

<a href="newpage.aspx#location?Variable=5">Link</a>

No luck with this method. Any ideas? thanks in advance!
 
<a href="newpage.aspx?Variable=5#location">Link</a>

AFAIK, the # part is always the last thing in a url.
 
Back
Top