javascript 弹出窗口问题

来源:百度知道 编辑:UC知道 时间:2024/06/01 13:10:08
javascript 弹出窗口问题
请问为什么我写出的弹出窗口 是像连接一样打开的最大化窗口 而不是我设定的没有工具栏等等之类的。我单独试用的时候都好用,但一放到工程代码里就不好用,是不是和别的有什么冲突啊
以下是本页面所有代码,麻烦您帮我看看!

<!--#include file=../conn/connStart.asp -->
<!--#include file=../bean/type.asp -->
<html>
<head>
<title></title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language="javascript">
function openwin(){
window.open ("quiz.asp","newwindow","height=100,width=400,top=40,left=60,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
}
</script>
<link href="../images/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="984&q

一组常用的弹出窗口用法

以下代码集合常用的弹出窗口用法。

1、最基本的弹出窗口代码

<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html')
-->
</SCRIPT>

代码放在<SCRIPT LANGUAGE="javascript">标签和</script>之间。

<!-- 和 -->是对一些版本低的浏览器起作用。
window.open ('page.html') 用于控制弹出新的窗口page.html,如果page.html不与主窗口在同一路径下,前面应写明路径,绝对路径(http://)和相对路径(../)均可。用单引号和双引号都可以,只是不要混用。

这一段代码可以加入HTML的任意位置,<head>和</head>之间可以,<body>间</body>也可以,越前越早执行,尤其是页面代码长,又想使页面早点弹出就尽量往前放。

2、经过设置后的弹出窗口

定制这个弹出的窗口的外观,尺寸大小,弹出的位置以适应该页面的具体情况。

<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>