Shemm22
May 2nd, 2003, 03:29 PM
the following is my javascipt code....The output when Ok is pressed is what i have a question about....I would like for the link that I open in a new window would be on top or the main focus not in the back?
<script language="JavaScript">
<!--
function confirm_entry()
{
input_box=confirm("By agreeing below, you are authorizing Traftononline.com to make the changes that you request through email, forms, etc. to your family information. You further agree that access to The Trafton Family Website may be revoked at any time and for any reason by The Site Security Team. It is your sole responsibility to protect and safeguard your User ID and password. Since this site contains personal information and because access to Traftononline.com Website will allow someone to see this information and to make changes to your information, your User ID and password must be kept private and secure. You agree to notify Our Security Team immediately if your User ID and/or password have become lost, stolen or become known by someone other than you. Traftononline.com will not be liable for any access to your personal information or for any unwanted changes made to your information through your User ID Login that result from third parties using your User ID and password. \n\n I have read and understand this disclaimer.");
if (input_box==true)
{
// Output when OK is clicked
homeWindow=window.open("http://traftononline.com/protected/index.htm");
}
else
{
// Output when Cancel is clicked
history.go(-1);
}
}
-->
</script>
// Output when OK is clicked
<script language="JavaScript">
<!--
function confirm_entry()
{
input_box=confirm("By agreeing below, you are authorizing Traftononline.com to make the changes that you request through email, forms, etc. to your family information. You further agree that access to The Trafton Family Website may be revoked at any time and for any reason by The Site Security Team. It is your sole responsibility to protect and safeguard your User ID and password. Since this site contains personal information and because access to Traftononline.com Website will allow someone to see this information and to make changes to your information, your User ID and password must be kept private and secure. You agree to notify Our Security Team immediately if your User ID and/or password have become lost, stolen or become known by someone other than you. Traftononline.com will not be liable for any access to your personal information or for any unwanted changes made to your information through your User ID Login that result from third parties using your User ID and password. \n\n I have read and understand this disclaimer.");
if (input_box==true)
{
// Output when OK is clicked
homeWindow=window.open("http://traftononline.com/protected/index.htm");
}
else
{
// Output when Cancel is clicked
history.go(-1);
}
}
-->
</script>
// Output when OK is clicked