Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- javascript redirect for custom alert


designer123 - 5:08 am on Dec 13, 2007 (gmt 0)


Javascript question –
I have a link on my website "click here to purchase" when customer clicks on it he gets a custom alert window saying 'you are going to purchase the item xyz. click on ok to proceed or cancel to cancel'The user should here point to purchase.aspx after clicking on ok. This custom alert points to different locations for different links like purchase.aspx, query.aspx etc for each page custom window. plz tell me how do I write the javascript for the same.

here is the sample code
<div id="alertcustom">
<p>'you are going to purchase the item xyz. click on ok to proceed or cancel to cancel'</p>
<form id="form1" action="#" onsubmit="xyz();">
<input id="OK" class="okbutton" name="OK" value="OK" type="submit" />
<input id="Cancel" class="cancelbutton" name="Cancel" value="Cancel" type="submit" />
</form>
</div>

Thanks - Vicky....


Thread source:: http://www.webmasterworld.com/javascript/3526486.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com