急~~!!麻烦各位我想问一个 Javascript 权限问题.
问题是这样的我现在在本机上写了这样一个测试网页附上代码..
---------------- index.htm ---------------------
<html>
<head>
<title>New Page 1</title>
</head>
<frameset rows="191,*">
<frame name="header" src="svr/menu.htm">
<frame name="main" src="http://www.agenow.com/iLogon.asp">
..........
---------------- menu.htm ----- frame:header ----------------
<html>
<head>
<title>New Page 2</title>
<script language="javascript">
<!--
function autoInput() {
parent.main.LoginForm.UName.value = "FreemanCow"
parent.main.LoginForm.Psw.value = "123456"
}
//-->
</script>
.........
----------- http://www.agenow.com/iLogon.asp ---- frame:main -------------
<HTML>
<HEAD>
<TITLE>登陆</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<body>
<form method="post" action="Login.asp" name="LoginForm"><br>
<input type="text" name="UName" size=23 maxlength=20 value="">帐号<br>
...............
---------------------------------------------------------------
但当我想用 menu.htm 上 autoInput() 赋值给 iLogon.asp 内的表单 UName 时就提炼示没有权限请问这样的问题是否有办法解决, menu.htm 文件是我本机的而 iLogin.asp 一个正常网站的页面来的.