比较全的页面刷新方法

window.location.reload(); //刷新当前页面.

parent.location.reload(); //刷新父亲对象(用于框架)

opener.location.reload(); //刷新父窗口对象(用于单开窗口)

top.location.reload(); //刷新最顶端对象(用于多开窗口)

窗口:打开窗口window.open(), 关闭一个窗口:window.close(), 窗口本身:self

状态栏的设置: window.status=”字符”;

弹出提示信息: window.alert(”字符”);

弹出确认框: window.confirm();

弹出输入提示框: window.prompt();

指定当前显示链接的位置: window.location.href=”url”

取出窗体中的所有表单的数量: document.forms.length

关闭文档的输出流: document.close();

猜你喜欢

转载自blog.csdn.net/qq_26486949/article/details/88927191
今日推荐