Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,783 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,918 people online right now. Registration is fast and FREE... Join Now!




Changing Button text on an alert-redirect

 
Reply to this topicStart new topic

Changing Button text on an alert-redirect

webmin
post 9 Oct, 2008 - 05:43 AM
Post #1


D.I.C Head

**
Joined: 21 May, 2008
Posts: 96


My Contributions


I'm using Cubecart shopping cart software with paypal payment gateway. After payment I would like to create my own confirmation page with a button to click for confirmation. Right now this is the code that I have:

CODE

<html>
<script>
    alert("We have sucessfully recieved your order. Thank you for shopping at BRAMBY SALES.");
    location = "index.php";
</script>
</html>


I've attached a screenshot of what this does. What it does is not the problem, the problem is I want to change the button text from Ok, to something like Click to return to Home Page.

Is this possible, or am I missing an easier way to do this? Thanks


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 9 Oct, 2008 - 09:22 AM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,980



Thanked 77 times

Dream Kudos: 1175
My Contributions


You can't change the text that is displayed by default by the alert boxes. That is static and you can't change it, you could create your own popup window that has anything you want in it, though it will look like a normal browser window.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 02:56PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month