<html>
<title>test</title>
<head></head>
<body>
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
newwindow=window.open("","","scrollbars")
if (document.all)
{
newwindow.moveTo(0,0)
newwindow.resizeTo(600,400)
}
newwindow.location=target
}
windowopen();
//-->
</script>
</body>
</html>
<title>test</title>
<head></head>
<body>
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
newwindow=window.open("","","scrollbars")
if (document.all)
{
newwindow.moveTo(0,0)
newwindow.resizeTo(600,400)
}
newwindow.location=target
}
windowopen();
//-->
</script>
</body>
</html>
解决方案 »
- 请教:js自定义数组或者对象怎么转换成json字符串?
- iframe submit提交,返回页面显示到主窗口上了
- 做了一个图片滚动,IE,遨游,谷歌浏览器均正常,但是火狐中不正常,求助!
- Javascript版泡泡龙,经典重现!
- innerHTML innerText
- javascript中的onkeyup事件只有a,b,c,x,v五个按键可以触发,其余按键无效是怎么回事???
- 50求解一个小问题?!
- javascript问题
- embed____music___sound___god!!!!all disable
- 12306网站想买张卧铺,有哪位技术男能看下代码,如何改能做到吗?
- 子窗口关闭时,重新打一个url到对父窗口指定帧
- 页面的一个小问题
<title>test</title>
<head></head>
<body onload='document.all.button1.click();'>
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
newwindow=window.open("","","scrollbars")
if (document.all)
{
newwindow.moveTo(0,0)
newwindow.resizeTo(600,400)
}
newwindow.location=target
}
//-->
</script>
<form >
<input type="button" onClick="windowopen()" value="全屏显示" name="button1">
</form>
</body>
</html>
代码:0
<title>test</title>
<head></head>
<body onload="windowopen();">
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
newwindow=window.open("","","scrollbars")
if (document.all)
{
newwindow.moveTo(0,0)
newwindow.resizeTo(600,400)
}
newwindow.location=target
}
//-->
</script>
<form >
<input type="button" onClick="windowopen()" value="全屏显示" name="button1">
</form>
</body>
</html>
<html>
<title>test</title>
<head></head>
<body>
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
target="http://www.liaoba.com"
newwindow=window.open(target,"","left=0,top=0,width=600,height=400,scrollbars=yes,resizable=no;")
}
windowopen();
//-->
</script>
</body>
</html>
<title>test</title>
<head></head>
<body onload="javascript:frmDisplay.btnOpen.click()">
<script>
<!--
function windowopen()
{
var target="/MedicineQry.dll/search?RT=&MS= 西林"
newwindow=window.open("","","scrollbars")
if (document.all)
{
newwindow.moveTo(0,0)
newwindow.resizeTo(600,400)
}
newwindow.location=target
}
//-->
</script>
<form id="frmDisplay">
<input type="button" onClick="windowopen()" value="全屏显示" name="button" id="btnOpen">
</form>
</body>
</html>
新問題出現:
我在上述 处理的结果上 加上了 window.close ,这样 我本来的 网页就能关闭,然后弹出我 自己的另外窗口, 可是 原有网页 总是 一闪 然后才关闭,我不想 让它闪,只想 让它 默默无闻 地 打开 弹出窗口,可否实现?
buttonid.click()方法可以fire对象的onclick事件。