Kamis, 22 November 2007

[JavaScript] question about confirm box in javascript

hi

following is the code i am using presently =

======================================
msg = "Selecting OK means you will no longer receive emails. If you
wish to continue to hear from us, click on Cancel and you will be
taken to our homepage.";

if (confirm(msg)) return true;
else window.navigate("http://www.websitename.com"); return false;
return true
======================================

my question is about confirm pop up box.

1.
is it possible to change the title of the confirm box to "Are you
Sure"

2.
and instead of "ok cancel" buttons that appear for confirm box can
we specify "yes no"

please advice.

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

Tidak ada komentar: