Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: msgbox


Message #1 by "suzila" <smay642@h...> on Thu, 5 Sep 2002 10:16:49
You may use javascript Confirm
ex:

<SCRIPT LANGUAGE=javascript>
<!--
	function test() {
	var result = confirm("Your Message");
	if (result) alert('Ok')
	else alert('Cancel');
	}
//-->
</SCRIPT>

Berkay


--- suzila <smay642@h...> wrote:
> Hi,
> 
> In my project (using php) , i use js to show a
> msgbox and it's only have 
> one button - OK  ...how can i make two button, just
> like OK and
> Cancel. And make  control in it...
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

  Return to Index