javascript 学习笔记(7) window 对象的4个属性
1. document 实际上是 window 对象的属性.用于访问文档的信息.
alert(window.document == document); //outputs "true"
2. location 对象是 window 对象和 document 对象的属性,所以下面两个引用互相等价.用于访问URL的信息.
window.location;
document.location;
3. navigator 对象用于访问浏览器的信息.
4. screen 对象用于访问用户屏幕信息.
相关文档:
function checkfiletype()
{
var fileName = document.getElementById('<%=FilePath.ClientID%>').value;
if (Trim(fileName)=="")
{
alert("请选择要上传的文件!");
......
前台:
<%@ Page AutoEventWireup="true" CodeBehind="CustomerBizList.aspx.cs" Inherits="SSMIS.UI.MISUI.CustomerBizList"
Language="C#" MasterPageFile="/Master/WebAdmin.master" %>
<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="bcr">
......
用Javascript实现根据下拉列表category的选择结果,改变下拉列表sub_category的选项
<mce:script language="javascript" type="text/javascript">
<!--
function changeSubCategory() {
var sel_category = document.getElementById("category");
var sel_sub_category = document.getElementById("sub_c ......
<script>
///用户数据结构
function _tagUser()
{
this.UserId = 0; //0-4
this.UserName = ""; //5-
this.Parse = function(VarTypeUser)
{
for (var i=0;i<VarTypeUser.length;i++)
VarTypeUser[i] = String.fro ......