Link to home
Start Free TrialLog in
Avatar of Quack
QuackFlag for United States of America

asked on

Back button w/in a page w/o javascript?

Back button w/in a page w/o javascript? is it possible to change a back button sitting w/in a page from using javascript to straight html? I know back buttons aren't advisable when you have the browser's back button but I've been asked to try and keep things as they currently are. The current button takes a user back after they fail a test for a pdf being uploaded that's too large.

Code snippet:

<head>
<title>TITLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


<script type="text/javascript">
 function goBack()
   {
   window.history.back()
   }
 </script>
 
<style type="text/css">

</style>
</head>


<body bgcolor="#FFFFFF" >
<table width="100%" border="0">
  <tr>
    <td align="center"><span class="style7"> <br>
      NOTICE! The File You Tried To Upload Exceeds 3MB And Is Too Large!</span><br>
       <span class="style9">Please reduce the file size within Adobe Acrobat and try uploading again. </span><br>
       <br>
       <body>
 
<input type="button" value="Back" onClick="window.history.go(-2)" />
 
</body>
 <br>
    </td>
  </tr>
</table>
<br>
<br>
 

 
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of Fred Brown
Fred Brown

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Quack

ASKER

not using the browser button ...that would be great if that was all I had to do...this is an actual back button w/in the page itself that needs to go back to the pdf upload page which is one page back.
Avatar of Quack

ASKER

I need something to replace the javascript function in the current code .. .possibly a cold fusion button is where I'm currently checking.
Avatar of Quack

ASKER

worked or at least led me down the right path to the solution...thanks