HTML - Back Link That Works Like Back Button In Internet Explorer
Hi,
Is it possible in HTML to have a link that takes you back to the previous page you visited. But here's the catch....i want the back link on my pages to behave exactly as the BACK button in Internet Explorer (hope that makes sense). I have a link on my pages which is this: <font size="2"><a href="javascript: window.history.go(-1)">BACK</a></font> but this works in such a way that if you go to Page1, then Page2, then Page 3, then you click on BACK in page3...that takes you to Page2...if you then click on the BACK link on Page2, it takes you back to Page 3...when in fact I want it to go to Page 1.... Please urgently help. Thanks Similar TutorialsI have a solution with ajax where I send POST-information via <a href> like this: Code: <form name="myForm" action="GoHere.php" method="POST"> <input type="hidden" name="myVariable" value="thevalueiwanttosubmit"> <a href="GoHere.php" onclick="myForm.submit(); return false;">Click here</a> </form> There's also a paginate system with page numbers at the bottom. When I press an item I go to another page with more details. When I press the Back-button in Mozilla everything works fine, but in Explorer I start from page number 1 instead of the page I originally came from. How do I get Explorer to remember the page number? Do I have to change the javascript somehow? Hello, I dont know if someone had the same problems, but it seem to me that it is quite common. For a service I would offer my visitors to log in or register... Then after registering or logging in I would like to direct them back to the page where they had been diverted from. And the number of steps and the page are not always the same. Is there a way to "remember" the page name when click on register or login and at the end of the reg/log process go back there? Thanks Attila This is the first thing that I have ever written, so don't laugh and make derogatory remarks. The code works flawlessly on firefox and safari, but for some reason on internet explorer it doesn't even look remotely similar. So, please, any help I can get is welcomed. Code: <html> <head> <title>Theory Productions</title> <style type="text/css"> body {background-color:000000} h2 {text-align: center} h2 {color: #EEFAFA} h2 { font: 175% "gill sans" } h2 { line-height: 14pt } a:link {color: #FFFFFF; text-decoration: none} a:visited {color: #FFFFFF; text-decoration: none} a:hover {text-decoration: none} a:active {color:#FFFFFF; text-decoration: none} </style> </head> <body> <span style="position: relative; left: 88px"><img src="logo.gif" width="650px" height="215px"> </span> <h2><a href="http://www.google.com" target="_blank">Echols</a></p> <h2>Echols' Concert</p> <h2><a href="http://www.google.com" onclick="window.open(this.href,'popup','width=720,height=480');return false">Echols' Great Adventure</a> <h2><a href="EGTS.htm">Echols Goes To School</a> <h2><a href="http://www.google.com" target="_blank">Adam's Playground Adventure</a></p> </body> </html> Thanks, Adam Hi guys I would like to use "back" button like this: Code: <form> <input type=button value="Back" onCLick="history.back()"> </form> Can I replace this button with my own designed button? How can I do that? Hi, My client wants me to add a back to top link within a CSS scrollerble area. I can't seem to get it to work??!! Please check this out in i.e first as I haven't sorted it out in Firefox and safari yet. Link is here/ Many thanks, Louise Good morning world...I've got a problem. I work for a college updating web sites, and I don't have access to anything in the CSS that they setup before me (my administrators won't let me touch it), and I know very little of jQuery and javascript. To the point though, I want to add a "back to top" button that hovers around the bottom corner of the browser. Can I do it without being able to access the CSS that the college uses as its base? (I guess using HTML and HTML only)? I'm currently building a website for my jewelry and I have run into a simple, but aggravating problem. Should I include a back button? A back button would be the same a clicking on home, but are my visitors going to to know that? This is what it would look like with out a back button: http://i91.photobucket.com/albums/k3...backbutton.gif This is what it would look like with the back button: http://i91.photobucket.com/albums/k3...backbutton.gif I am looking for a back button but there is a catch. I want to send an email newsletter, the newsletter will link to articles on a website. I want a back button that will return the user to the Outlook email they clicked from. Any suggestions? Thanks Brian I guess I'm technically a noob. I've only half heartedly plied my feeble html skills for about 12 years. Right, well, a site I am working on has a rather long index page and several times along it there is a link to another page. They are all links to the same page and what I desire to do is allow my visitors to click on a link on that second page that will take them back to the same spot they were at on the index page. I know it's what the browser's back button does but I want to really "dumb it down" for the visitors. I can't seem to get the code and it's probably something so simple I'll kick myself, or... I'm just asking for something that can't be done What am I missing? (besides a few marbles) Cheers, +Nathan Hi there, I'm coding a html website with two frames (one top, one bottom). From the homepage, when the user clicks a link, both the top and the frame the link's in change. when my user is on that new page and click the back button in the toolbar, only the top frame (title) changes, but not the bottom one. So, for the 2nd page, I need a way to make the toolbar's back button move the viewer two steps instead of one. Is that possible? thank you, RandomNameHTML Hi I want to be able to turn the image that reads 'back' on the page below into a "back button" that automatically makes the browser go back a page, just like the back button within the browser. How do i do this? http://www.richardjohntaylor.com/bil...hotoerror.html I am using the following code to embed a flash game into my website: Code: <div id="game-position"> <object data="content/games/stickman-sam-2.swf" type="application/x-shockwave-flash" width="560" height="400"> <param name="ShowStatusBar" value="1" /> <param name="src" value="games/stickman-sam-2.swf" /> <param name="quality" value="high" /> <param name="loop" value="false" /> </object> </div> It works perfectly well on Firefox 3.0.11 but when I try to load the page in Internet Explorer 8 it just shows the flash game as a white square? Does anyone know how I could fix this? Thanks I have an html document (not a webpage) which I'm converting into a .pdf. I've created it before without any issue but now I'm noticing that when I click on the back button (after clicking on an internal link) that it does one of two things... It either a) returns me to the top of the document or b) takes me to some arbitrary spot in the document. Neither one being where I or my clients need to get back to. Anybody experience this or have a fix? Thanks, Hunter Hi, I am creating a site in HTML using Dreamweaver. I use rollover buttons to navigate the site which are normally grey but white when rolled over. I have found that when I press the BACK button the button I had previously clicked is white and not grey. Try it out for yourself: http://www.RandAM.org/RichardAsh/ Once the problematic button is rolled over it works normally. Is there a way to stop this from happening? thanks, R I am building this intranet for our employees at work. I am not a programmer, nor anykind of web professional, and I'm building this as an amateur. I have very basic knowledge of HTML and a bit of CSS, and that's pretty much it. Once the thing is ready to be released, it will have to be updated on a regular basis, and by people whose background and function have nothing to do with scripting (in fact, I cannot take care of it myself all the time since I'm leaving for Europe soon). Therefore, I resigned to using MS Word 2007 as the html editor, since it's the only software anyone can usen here to update the files without having to learn how to code (I haven't found any freeware that didn't require prior html knowledge and the company will not pay for a software liscence of any kind). I know MS word is basically the worst thing one can use to build a website, but I couldn't find any better for this scenario. Now I'm encountering a bit of a problem with the website, specifically with frames. The website (which is a frameset) is divided in two sections: a menu on the left (frame_menu), which is static should remain there all the time, and a frame to the right (frame_main) displaying the pages contents. Now, when a user clicks on a link in frame_menu, the content (page A) displays in frame_main, which is what I want. Then if someone clicks on a link in the page A in frame_main that links to another page (page B), it will open gain in frame_main, replacing the page A that was there. So far, this is the behavior I want, and the frame properties were set for this. The problem comes when the back button is used. If you are on page B, and then click the back button, you will come back to page A, in frame_main (so far still good), but any subsequent link the user will click after using the back button, whether it's a link in frame_menu or frame_main, will open in a new window, even though the default for opening links of the frame is set to frame_main as the target! This renders the frameset completely useless, and the whole frameset has to be closed and reloaded to function properly again. I know frames are deprecated. The only alternative I have found was to use CSS to simulate frames. However, from what I have read (and tell me if I am mistaken), it only simulates the fact that you have a "fixed" menu on every page, but the menu is NOT a separate html file, and has to be part of every page on the website. This makes the updating of the menu very tedious, as it has to be changed on every page of the website, were an item to be added to it. This is why I used frames to begin with: no need to update every page to add something to your menu, just update the menu.html file and voila. So I would like to know if you have any workaround for this problem. Any suggestion is appreciated. This was all tested with IE8. It's the only browser provided to the employees, I cannot use another one. This is part of the code (generated by MS Word of course) that contains the frametset <frameset framespacing=0 frameborder=0 border=0 cols="215,1*"> <frame name="frame_menu" src="file:///\\sv050\GROUPS\AGT\AGT-CDS\AGT-CDS-CR\helper\html\menu.htm" scrolling=no> <frame name="frame_main" src="file:///\\sv050\GROUPS\AGT\AGT-CDS\AGT-CDS-CR\helper\html\home.htm"> <noframes> <body lang=EN-US style='tab-interval:36.0pt'> <div class=WordSection1> <p class=MsoNormal style='margin-bottom:10.0pt;line-height:115%'><span style='font-size:11.0pt;line-height:115%'>This page uses frames, but your browser doesn't support them.<o:p></o:p></span></p> </div> </body> </noframes> </frameset> If the entire script of the frameset.html is needed, tell me and I'll post it. Thanks in advance, Guill Hello Guys, I use Named Anchor to navigate within my webpage. Is there any way how one can navigate back to the clicked link from the destination? Normally the backspace works. But I would like to add a link at the destination and clicking this link would take me back to the clicked-link. Is this possible? I hope I made myself clear. If any of you can give me some advise about this issue, it would be much appreciated. Thanks in advance, Chuma P.S - I read in a site that using the <li> tag can do this. I am unsure how that works either. If any of you have any idea about this, please let me know. Thanks. Hi, I need some help please? I have bought/made a simple html page on internet. The problem is that when i uploaded it to my ftp server which is on www.one.com and tried it in IE it did not work as it should. It works perfectly in any other webbrowser like Safari, Mozilla, GoogleChrome, Opera. Why not IE? Is there anybody out there who can help me? Somebody please tell me what's wrong? Best regards Pete index.html HTML Code: <!DOCTYPE html> <html lang="en"> <head> <title>RUSSEUKEN.no</title> <meta charset="utf-8"> <meta name="description" content="Russeuken"> <meta name="keywords" content="russ, russefeiring, bergen, uken, russeuken, norge, 17. mai, fest "> <meta name="author" content="Russeuken"> <[if IE]><link href="css/ie_style.css" rel="stylesheet" type="text/css" /><[endif]> <[if lt IE 9]><script type="text/javascript" src="js/html5.js"></script><[endif]> <[if lt IE 7]><script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script><[endif]> <link rel="stylesheet" href="css/reset.css" type="text/css" media="all"> <link rel="stylesheet" href="css/grid.css" type="text/css" media="all"> <link rel="stylesheet" href="css/style.css" type="text/css" media="all"> <link href="css/jbgallery-2.0.css" id="jbgallery-css" rel="stylesheet" media="javascript-screen" /> <!-- styles for prettyPhoto --> <link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="all"> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="js/script.js"></script> <script type="text/javascript" src="js/cufon-yui.js"></script> <script type="text/javascript" src="js/Myriad_Pro_400.font.js"></script> <script type="text/javascript" src="js/Myriad_Pro_900.font.js"></script> <script type="text/javascript" src="js/Myriad_Pro_400r.font.js"></script> <script type="text/javascript" src="js/cufon-replace.js"></script> <script src="js/jbgallery-2.0jbgallery-2.0.js" type="text/javascript"></script> <script type="text/javascript"><!-- jQuery(document).ready(function(){ jQuery(".jbgallery").jbgallery({ menu : "numbers", style: "zoom", slideshow : true, caption : false }); }); --></script> </head> <iframe id="ytplayer" type="text/html" width="0" height="0" hidden="1" src="http://www.youtube.com/embed/BpJhT4yzWyo?autoplay=1" frameborder="0"/></iframe> <body> <div class="extra"></div> <div class="extra1"> <div id="main"> <!-- header --> <header class="head"> <div class="jbgallery"> <ul> <li><a href="images/1.jpg"> </a></li> <li><a href="images/4.jpg"> </a></li> <li><a href="images/2.jpg"> </a></li> <li><a href="images/3.jpg"> </a></li> <!--<li><a href="images/5.jpg"> </a></li>--> </ul> </div> <div class="block-2"> <div class="logo"><a href="http://www.exodus.no"><img src="images/logo.png" alt=""></a></div> <nav> <ul class="sf-menu"> <li><a href="russeuken.html">RUSSEUKEN</a></li> <li><a href="arrangement.html">PROGRAM2012</a></li> <li><a href="russ.html">RUSS</a></li> <li><a href="bilder.html">BILDER</a></li> <li class="last"><a href="kontakt.html">KONTAKT OSS</a></li> </ul> </nav> </div> <div class="text-1">change bg</div> </header> </div> <!-- footer --> <footer> <div class="container"> <div class="indent"> <div class="wrapper"> <div class="fright"> <span>RUSSEUKEN.no</span> © 2012 </div> <div class="fleft"><!-- {%FOOTER_LINK} --></div> </div> </div> </div> </footer> </div> </body> </html> ie_style.css Code: .link-1,.link-2,.block-1,.block-2,.sf-menu a:hover,.sf-menu a.current,.sf-menu a,.content-box,.main-banner,.sf-menu li ul,#advanced{behavior:url(js/PIE.htc); z-index:100;} .link-1,.link-2,.block-1,.block-2,.content-box,.main-banner,.content-box,.content-box-1{behavior:url(js/PIE.htc); z-index:100; position:relative} ie7.css Code: /* IE7 specific styles */ #constuction-box {display:inline;} #intro-box {display:inline;} .tabs code { overflow:visible !important;} #contact-form { height:580px;} .block-1{behavior:url(js/PIE.htc); z-index:100; position:relative} html5.js PHP Code: // Create new HTML5 elements =================================================== // ----------------------------------------------------------------------------- // This script should load before any others. We want the new elements to be // parsed before pretty much anything happens. // Plus, IE does not behave otherwise. The cost of being progressive... // ----------------------------------------------------------------------------- document.createElement("article"); document.createElement("aside"); document.createElement("audio"); document.createElement("canvas"); document.createElement("command"); document.createElement("datalist"); document.createElement("details"); document.createElement("embed"); document.createElement("figcaption"); document.createElement("figure"); document.createElement("footer"); document.createElement("header"); document.createElement("hgroup"); document.createElement("keygen"); document.createElement("mark"); document.createElement("meter"); document.createElement("nav"); document.createElement("output"); document.createElement("progress"); document.createElement("rp"); document.createElement("rt"); document.createElement("ruby"); document.createElement("section"); document.createElement("source"); document.createElement("summary"); document.createElement("time"); document.createElement("video"); Hi, I am in the process of building a website for a client. This is my first ever site so I knew I would have a few issues. I have fixed all but one at present. Here is a link to my site which I have put live on a test server. http://leaf.greenxtian.com/grangefarm/index.html The naviagation bar and Lightbox2 images are moving when rolled over. This only happens in Internet Explorer 8. It is fine in FireFox and other browsers. It is only on the Services/Facilities Pages so I think it may be an issue with the CSS for Lightbox2? Maybe how I have set it up or just a bug in the coding? Does anyone know why this is happening? If so, do you know of a fix? Any help would be greatly appreciated as I have spent hours trying to work this out. Hi, I've got three buttons on a page and basically all I'm trying to do is put a BACK button as one of the three. But I'm having difficulties getting it to work. Code: <form name="reservationinfo" action="reservationcollected.php" method="post"> <input type="hidden" name="reservationID" value="<? echo $reservationID; ?>"> <center> <table width="400" border="0" cellspacing="5"> <tr> <td><input type="submit" value= "Reservation Collected" class="button" name="submit"></td> <td><input type="submit" value='Cancel Reservation' onclick="reservationinfo.action='admincancelreservation.php'; return true;"></td> <td><input type="submit" value='Back' onclick="reservationinfo.action='history.go(-1)'; return true;"></td> </tr> </table> </center> </form> The solutions Ive been trying either take me to reservationcollected.php OR says history.go(-1) CANNOT BE DISPLAYED. Any ideas? Cheers |