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. Link to comment https://forums.phpfreaks.com/topic/51909-this-is-a-simple-question-trying-to-redirect-a-user-when-they-click-cancel/ 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 Link to comment https://forums.phpfreaks.com/topic/51909-this-is-a-simple-question-trying-to-redirect-a-user-when-they-click-cancel/#findComment-255931 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. Link to comment https://forums.phpfreaks.com/topic/51909-this-is-a-simple-question-trying-to-redirect-a-user-when-they-click-cancel/#findComment-256153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.