Yes indeed, quick brainfart question. I've forgotten the code for when you create a hyperlink to another site and want it to open at a certain bit, or paragraph, on a web page.
Thanks![]()
Yes indeed, quick brainfart question. I've forgotten the code for when you create a hyperlink to another site and want it to open at a certain bit, or paragraph, on a web page.
Thanks![]()
.
"Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"
This code will open a webpage in a frame on your page:
Sorry i dont quite know what your asking for so if thats not what you want just say...Code:<iframe src ="http://www.example.com" width="100%"> </iframe>
It was a little rushed
My standard hyperlink code I use...
Directs you to a web page.Code:<A HREF=" " target="_blank" STYLE="color:#000000"> </A>
What's the code to make it open at any point I want on that page?
.
"Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"
You mean something like:
<a
href="#Q1">I have a question</a>
And then in the code later on you would have:
<a name=Q1>The Answer</a>
And then when you click the link, it would jump to that part of the page?
The other website needs to have a target tag attached to the part you want to open. It's easy enough if it's your own page you're linking to, but if it's someone elses, you'll have to check if there's a < a name= > tag.
HEXUS.community discussion forums - FAQ: Reading and Posting Messages
Hover over that link, and you'll see a # followed by the target name. Just like Big Leon said.
sig removed by Zak33
Yes Big Leon, that's what I'm after. Create a link - click on it - jump to that part of page scenario. Except I didn't think it looked like that....I'll go play and experiment. Ta.
.
"Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"
cheers ibm, I got it.![]()
.
"Ladies and Gentlemen, take my advice: Pull down your pants and slide on the ice"
As far as i'm concerned it's better to practice to specify anchors on the id attribute.
<a href="http://mysite.tl/index.html#namedlink">
<h2 id="namedlink">Chapter 5</h2>
To err is human. To really foul things up ... you need a computer.
++
That's the correct method now.
HTML A TAG
^ handy reference.
There are currently 1 users browsing this thread. (0 members and 1 guests)