G Greenhoe macrumors regular Original poster Dec 17, 2008 199 0 Feb 9, 2009 #1 Hi, I wanted to know if it is possible to link to a specific #ID that is on another page. Such as... Link from page 1, to an ID on page 2. If this is possible how do I make the link? Thanks Thanks
Hi, I wanted to know if it is possible to link to a specific #ID that is on another page. Such as... Link from page 1, to an ID on page 2. If this is possible how do I make the link? Thanks Thanks
r.j.s Moderator emeritus Mar 7, 2007 15,026 52 Texas Feb 9, 2009 #2 I think you have to give it an anchor, not an id.
G Greenhoe macrumors regular Original poster Dec 17, 2008 199 0 Feb 9, 2009 #3 r.j.s said: I think you have to give it an anchor, not an id. Click to expand... How exactly do I do that? I'm not familiar with anchors at all. Is it similar to an ID? As I have a ID in a DIV on another page which I'm trying to link to.
r.j.s said: I think you have to give it an anchor, not an id. Click to expand... How exactly do I do that? I'm not familiar with anchors at all. Is it similar to an ID? As I have a ID in a DIV on another page which I'm trying to link to.
r.j.s Moderator emeritus Mar 7, 2007 15,026 52 Texas Feb 9, 2009 #4 Use <a name="div1"></a> right before the div you want to link to. Then for the link use: <a href="page.htm#div1">Link</a> Replace div1 with whatever name you want.
Use <a name="div1"></a> right before the div you want to link to. Then for the link use: <a href="page.htm#div1">Link</a> Replace div1 with whatever name you want.
angelwatt Moderator emeritus Aug 16, 2005 7,852 9 USA Feb 9, 2009 #5 The id attribute will generally work as well. There might be some old browsers that don't understand it, but can't remember specifics. page.html: HTML: <a href="somepage.html#idName">Link to id on some other page</a> somepage.html: HTML: <div id="idName">
The id attribute will generally work as well. There might be some old browsers that don't understand it, but can't remember specifics. page.html: HTML: <a href="somepage.html#idName">Link to id on some other page</a> somepage.html: HTML: <div id="idName">