silent_sufferer Posted March 23, 2011 Share Posted March 23, 2011 i would like to know how to create a back link or if it is possible to use chortcuts in thye hreff="**" link as i would like to go out of a file that the document im on and into another file but the file address is not fixed. please help Link to comment Share on other sites More sharing options...
Ingolme Posted March 23, 2011 Share Posted March 23, 2011 No, it can't be done. Link to comment Share on other sites More sharing options...
lastlifelost Posted March 23, 2011 Share Posted March 23, 2011 I can't be dine with just HTML, but if you're OK with javascript, try this: <a href="#" onClick="history.go(-1)">Back</a> Simple back button that will bring you back to the last page you were on. Link to comment Share on other sites More sharing options...
silent_sufferer Posted March 24, 2011 Author Share Posted March 24, 2011 ok i know i never made myself clear in my first message. U c i have a homepage and other pages in othe folders that can be opened using the homepage but i want to create a link that will lead me back to the homepage which is not in the same folder that the page with the link is. I was thnkning of using the following hreff="Shortcut to Home Page.lnk" to load my home page. Would that work? Link to comment Share on other sites More sharing options...
Ingolme Posted March 24, 2011 Share Posted March 24, 2011 You can use "../" to go up a folder level. <a href="../index.html">Index</a> Link to comment Share on other sites More sharing options...
Synook Posted March 24, 2011 Share Posted March 24, 2011 .lnk files are Windows shortcut files, I'm not sure how that relates to linking to the home page. You can also use / to refer to the document root: <a href="/index.html">Home page</a> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.