homepage Welcome to WebmasterWorld Guest from 54.167.185.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
javascript redirect for custom alert
designer123




msg:3526488
 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....

 

daveVk




msg:3526504
 6:16 am on Dec 13, 2007 (gmt 0)

Like this maybe?

<form id="form1" action="/purchase.aspx?item=xyz" >

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved