Jump to content

links


amrita

Recommended Posts

is it possible to make a link to a certain paragraph located on another page, on the same site - and if, how does one do it?
Give the paragraph an id.for example<p id=amrita">some stuff here</p>then link to the other page and add #amrita at the end.ie. <a href="anotherpage.html#amrita">link</a>this should work
Link to comment
Share on other sites

Hi... Its possible.. do the following: create 'test1.html' and put following content in it..------------------------------------------------------------------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Link within same and another page</title></head><body><a href="test2.html#myname" name="test">test on test2.html</a><br />This is demostration of link within para @ another page it will link to test1.html.. within same page<br /><a href="test1.html#myname" name="test">test on test1.html within same page</a><br />This is demostration of link within para @ another page it will link to test2.html..<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><a name="myname"><strong>mytest: </strong>this is mytest</a></body></html>-----------------------------------------------------------------------------------------------------create another page named 'test2.html' and put following content in it------------------------------------------------------------------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Link within same and another page</title></head><body>This is demostration of link within para @ another page it will link from test1.html..<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><a name="myname"><strong>mytest: </strong>this is mytest</a></body></html>------------------------------------------------------------------------------------------------------and now try to run test1.html, probably you will get your desire result Regards,Vijay

Link to comment
Share on other sites

thx, but i can't seem to get it to work, what i want to do is put a link to an iframe, to a paragraph related to what's in the iframe, but it is on another page, than the iframe i did what you wrote.. put the tags around the iframe and named the paragraph, but it doesn't work - at least i can't get it to... any idea what i'm doing wrong?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...