当链接包含“@”符号时如何阻止浏览器进入邮箱。
<display:column class="aligncenter" style="font-style: italic;"
property="conditions" sortable="true" title="Terms & Conditions"
autolink="true" href="javascript: openWindow('#')" paramId="pid"
paramProperty="pid">
</display:column>
function openWindow(pid) {
pid = pid.substring(0, pid.length - 1);
var url = "conditionpopup" + pid;
var a = navigator.appName;
if (a == "Netscape" || a == "Crome") {
var w = screen.width / 2.3;
var h = screen.height / 1.3;
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);
window.open(url, 'condtionpopup', "width=" + w + ", height=" + h
+ ", top=" + top + ", left=" + left
+ ", resizable=no, titlebar=0,dialog=yes,location=no");
} else {
var w = screen.width / 2.3;
var h = screen.height / 1.5;
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 2);
window.open(url, 'condtionpopup', "width=" + w + ", height=" + h
+ ", top=" + top + ", left=" + left
+ ", resizable=no, titlebar=0,dialog=yes,location=no");
}
}
当数据包含“@”符号时,它会进入我不希望它进入我发送的页面的邮箱