cluce Posted May 17, 2007 Share Posted May 17, 2007 I know this is not hard to do. I just am a real newbie to this stuff. I mostly use php. what would be the JS function to call to redirect a user back to the previous page when they do an onclick on the cancel button. I am using Dreamweaver 8. I know how to call the javascript. I am just not sure how to write it. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
TobesC Posted May 17, 2007 Share Posted May 17, 2007 hey - im a newbie too. i can help you out - how cool is that. anyway, heres how to redirect: onClick="window.location='http://www.your address.com'" inside the button tag. make sure that you change the button action to "none". happy programming Quote Link to comment Share on other sites More sharing options...
xenophobia Posted May 18, 2007 Share Posted May 18, 2007 <a href="history.go(-1)">Back</a> This will be the same function as the browser's back button. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.