Thread: window.confirm
View Single Post
Old 10-11-2012, 08:54 PM   PM User | #1
hans_cellc
New Coder

 
Join Date: Oct 2011
Posts: 92
Thanks: 38
Thanked 0 Times in 0 Posts
hans_cellc is an unknown quantity at this point
window.confirm

please assist, I have the following code and wish to change the default OK and Cancel buttons to Yes and No buttons.
How is this possible, I am sure there was a way with additional arguments within the brackets but cant seem to find it anywhere.

Code:
<script type='text/javascript'>	
    if (window.confirm('Username or Password INCORRECT! Do you want to Register?')) 
		window.location.href='register.php'; 
	else
		window.location.href='index.php';
    </script>
hans_cellc is offline   Reply With Quote