Click to See Complete Forum and Search --> : Need Help


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

Satishpp
May 2nd, 2003, 04:02 PM
Are you saying that the browser window that opens when you click OK is going behind the current window?

I tried out your code and the new window comes up in front and gets focus. I am using IE 6.0

What browser are you using?

Satish

Shemm22
May 2nd, 2003, 04:09 PM
Well I have IE 6.0 Also but I quess I was in my Yahoo DSL Browser...Do you know of anyway to change this for other browerser???

Satishpp
May 2nd, 2003, 04:26 PM
I think this would be default behaviour of most browsers. Your Yahoo DSL browser must be tweeked to change the default behaviour. Try testing on a different machine...

Satish

Shemm22
May 2nd, 2003, 04:28 PM
thanks for your help