# JavaScript problem

**URL:** <https://forum.kirupa.com/t/javascript-problem/137133>\
**Category:** Uncategorized\
**Created:** [February 11, 2005, 2:38pm UTC](https://forum.kirupa.com/t/javascript-problem/137133 "2005-02-11T14:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![klegger](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@klegger](https://forum.kirupa.com/u/klegger)\
**Post date:** [February 11, 2005, 2:38pm UTC](https://forum.kirupa.com/t/javascript-problem/137133/1 "2005-02-11T14:38:31Z")

</div>

Hello all:

I have a link on a page that uses some Javascript, and I am trying to make the link launch a page in a new window. The Java makes it so that a form checkbox needs to be selected before proceeding. Right now it is launching a file on the site, but I cannot get a new link using a \_blank target to work with the agreement button.

A HREF=“Javascript:if(form1.elements[‘Agreement’].checked){ navigate(‘Register.asp?\<%= Server.HTMLEncode(MM\_keepURL) %\>’);}else {alert(‘You must agree that you have read this documentation before continuing’);}”\>Click here to proceed to sign up forms.\</a\>

I need to replace Register.asp with a link a Beanstream payment form and make it launch in a new window so it is SSL Secure.

Thanks …
