# JS form check thinger

**URL:** <https://forum.kirupa.com/t/js-form-check-thinger/150588>\
**Category:** web dev\
**Created:** [June 9, 2005, 12:51am UTC](https://forum.kirupa.com/t/js-form-check-thinger/150588 "2005-06-09T00:51:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinkumrocks](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dinkumrocks](https://forum.kirupa.com/u/dinkumrocks)\
**Post date:** [June 9, 2005, 12:51am UTC](https://forum.kirupa.com/t/js-form-check-thinger/150588/1 "2005-06-09T00:51:19Z")

</div>

Ok. I have this mailing list on my site. For the admin, you can choose from 3 options. Preview the email, send a test email to yourself, or send.

What i’m aiming for is if the radio button named “action”'s value equals “send” then i want a confirm box to pop up when you submit it.

this is waht i have

```auto
<script language="javascript">
	<!--//
function confirm_prompt() {
	if (email.action.value="send"){
		   return confirm("Are you sure you would like emails to be sent out?

");
	 }
	 }
	//-->
</script>

```

and i have this on the form

\<form action=“sendlist.asp” method=“post” name=“email” id=“email” onSubmit=“return confirm\_prompt();”\>

now, im really bad at JS, so i could be totally off.

any help?  
-Naaman
