Quack
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>
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
</body>
<br>
</td>
</tr>
</table>
<br>
<br>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I need something to replace the javascript function in the current code .. .possibly a cold fusion button is where I'm currently checking.
ASKER
worked or at least led me down the right path to the solution...thanks
ASKER