1 Replies - 3397 Views - Last Post: 09 October 2008 - 10:22 AM

#1 webmin  Icon User is offline

  • D.I.C Regular

Reputation: 4
  • View blog
  • Posts: 256
  • Joined: 21-May 08

Changing Button text on an alert-redirect

Posted 09 October 2008 - 06:43 AM

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:

<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

Is This A Good Question/Topic? 0
  • +

Replies To: Changing Button text on an alert-redirect

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1167
  • View blog
  • Posts: 7,207
  • Joined: 07-September 06

Re: Changing Button text on an alert-redirect

Posted 09 October 2008 - 10:22 AM

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1