1.oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <body oncontextmenu=return(false)> 禁止查看源文件代码 <script language="javascript"> function click(){ if (event.button==2){alert('You are bad man')}} document.onmousedown=cilck </script> View Source菜单项应该没有办法吧2.window.open()把窗口A作为参数传给B
如果是ASP.NET 可以用SESSION
A页面OPEN打开B页面,B页面这样取值
B.element.value = window.opener.formName.elementName.value
...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />
<title>AAAAAAAAAAAAAAA</title>
</head><body>
<form id="form1" name="form1" method="post" action="">
AAAAAAAAA<input type="text" name="a" />
<input type="button" name="ttt" value="test" onclick="window.open('b.html')"/>
</form>
</body>
</html>
页面B<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />
<title></title>
<script>
function getA(){
document.form1.b.value = window.opener.form1.a.value;
}
</script>
</head><body onload="getA();">
<form id="form1" name="form1" method="post" action="">
BBBBBBBB<input type="text" name="b" />
</form>
</body>
</html>
测试通过
<body oncontextmenu=return(false)> 禁止查看源文件代码
<script language="javascript">
function click(){
if (event.button==2){alert('You are bad man')}}
document.onmousedown=cilck
</script>
View Source菜单项应该没有办法吧2.window.open()把窗口A作为参数传给B