<script language=javascript>
function createStory()
{
var storyMessage="<html><head></head><title>good</title>"+"<body><h1>What's the time now</h1></body></html>";
var listwin;
listWin=window.open("","story","width=400,height=300");
listWin.document.write(storyMessage);
listWin.document.close();
}
</script>
function createStory()
{
var storyMessage="<html><head></head><title>good</title>"+"<body><h1>What's the time now</h1></body></html>";
var listwin;
listWin=window.open("","story","width=400,height=300");
listWin.document.write(storyMessage);
listWin.document.close();
}
</script>
解决方案 »
- 谁帮我写个小循环呀!!
- 在调用IE的打印功能时出现"不安全的控件"信息!
- 在IE下给DIV设置innerHTML时发生,未知运行时错误
- [高分]大侠帮帮我吧,刚学JS但项目太难做了
- 请问如何遍历dom的所有对象,方法和属性呢?
- 再次郁闷!!寻梦的稻草人及JS高人请进!
- 怎样check文件是否存在
- 有个js的数组问题(初级问题)
- 一个日期格式的字符串,如何将其转化为日期格式?
- 前端:上传word文档,读取文档内容,找到其中的关键字,取出一段文字信息,有什么方案吗
- 判断日期输入是否合法的正则,要匹配:2004-8-1,2004-08-01,2004-8-12,2004-11-1(2004-22-42为不合法!)急用!!!
- 在Js文件中有这么一段,是什么意思?详情请进.谢谢
listWin.document.close();
==>
listwin.document.write(storyMessage);
listwin.document.close();注意大小写