Jump to content

this is a simple question. trying to redirect a user when they click cancel


cluce

Recommended Posts

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.