这是一个脚本函数,用来弹出窗体用的. 参数是一个URL.

 

function PopUp(ref)

        {
                var strFeatures = "toolbar=no,status=no,menubar=no,location=no";
                strFeatures = strFeatures + ",scrollbars=yes,resizable=yes,height=700,width=800";
                newWin = window.open(ref, "TellObj", strFeatures);
                newWin.opener = top;

        }

 

调用方法参加:

 document.write('<b> By clicking on the Login button, you agree to the <a class="bluelink" href="javascript:PopUp(\'http://www.baidu.com\')" ><b>Test.</b></a> ');