Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript弹出框显示问题_Javascript - Fatal编程技术网

Javascript弹出框显示问题

Javascript弹出框显示问题,javascript,Javascript,我是JavaScript的新手程序员。 我编写了下面的函数来获得点击电子邮件时的弹出框 关于abc.php <span class="subbodyheader">E-mail: </span> <SCRIPT TYPE="text/javascript"> <!-- // protected email script by Joe Maller(credit)

我是JavaScript的新手程序员。 我编写了下面的函数来获得点击电子邮件时的弹出框 关于abc.php

<span class="subbodyheader">E-mail: </span>

            <SCRIPT TYPE="text/javascript">
            <!-- 
            // protected email script by Joe Maller(credit)
            // JavaScripts available at http://www.joemaller.com

             emailE=('abc@' + 'XYZ.com')
             document.write('<a onclick="show_confirm()" >' + emailE + '</a>')
             //-->
            </script>




<script type="text/javascript">
 function show_confirm()
 {
    var title = "WXY LLP - Email Disclaimer"
    var msg1="The sending of an email to WXY  ('SAL') lawyer does not create an attorney-client relationship.  " 
    var msg2 = "This website presents general information about SAL and nothing contained in this site is intended as legal advice to you or anyone else and you should not consider it as such. Please be aware that anything you send to anyone at SAL will not be treated as or considered to be confidential from disclosure  unless we have formally agreed to represent you for a particular matter and we have completed a conflicts check. Unless we have created an attorney-client relationship.No information that you  provide to us will prevent SAL from representing a different client in the same matter. "
   //Also, please be aware that until an attorney-client relationship with you exists, SAL is entitled to use any  information that you provide to us in the representation of another client.As a result, you should not send  confidential information to anyone at SAL until you are notified that a formal attorney-client relationship has been established."
    var msg3 =" By clicking 'Ok' in this box and sending this email, you confirm that you have read and understand this notice."

 if (confirm(title + "\n"+ "\n" + msg1 + "\n"  +msg2 + "\n"+ "\n" + msg3 +"\n")==true)
 {
  //window.resizeTo(25,90); //For fixing the window size.
  emailE=('abc@' + 'XYZ.com')
  //document.write('<a href="mailto: ' + emailE + ' " >' + emailE + '</a>') 
  window.location.href = "mailto:abc@XYZ.com"   
 }
 else
 {
  //alert("You pressed Cancel!");
 } 
}
 </script>
电子邮件: