1,怎样打开一个页面,原来的页面不消逝,不要用这个哈window.open()
2,一般网站打开一个页面的内容有,有个[关闭本页],请问怎样关闭一个页面,注意这个页面不是用window.open()打开的哈
2,一般网站打开一个页面的内容有,有个[关闭本页],请问怎样关闭一个页面,注意这个页面不是用window.open()打开的哈
解决方案 »
- 有好多问题哦。真的好多问题。
- jquery JSON传值等问题
- 批处理的一个问题
- 向高手请教treeView动态生成树目录的问题
- 一个 项目(包括 文件夹,应用类等 所有 文件)复制到另外机子上是在打开解决方案,为什么总会出现没有引用dll这样的错误信息?
- 如何设置iis的默认网站
- wrox.beginning.asp.net 2.0.with.csharp.may.2006中文版下载地址
- 谁给我解释一下强名称?
- 安装visual studio .net 2003前没安装IIS服务,怎么办
- 未能加载文件或程序集“FramWorkCore”或它的某一个依赖项,(求大神指点迷津)
- 跪求投票源码
- 请问一个比较弱的问题,页面输出好还是绑定好
response.write("<script><a href=".." target=_blank></script>"); 这个我想不行的
2\response.write("<script>window.close()</script>");这个我试了,关不了
<a href="新页面的URL" target="_blank">打开新页面</a>关闭:
<input type="button" onclick="javascript:window.close()" value="关闭本页"/>
第二个问题你可以自己
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>
<input type="button" name="Button" value="关闭本页" onClick="document.all.WebBrowser.ExecWB(45,1)">
这个是没有弹出窗口提示的办法。
----
因为这个跳转必须要经过判断,所以必须用BUTTON,怎么办呢?
Response.Write("<script>window.close();</scrpt>");
---
我要判断导航到哪个页面,
if(OK)
<a href=".." target=_blank>
ELSE
<a href=".." target=_blank>
<% if(....)
{
%>
<a href=".." target=_blank>
<%
}
else
{
%>
<a href=".." target=_blank>
<%
}
%>
这可以这样写,过去的asp分格!!!
<a id="abc" href="http://xunbin.com" target=_blank>
<input type="button" value="打开" onclick="document.getElementById('abc').click()">
第二个
window.opener=null;window.close();
<a id="abc" href="http://xunbin.com" target=_blank>
<input type="button" value="打开" onclick="document.getElementById('abc').click()">
第二个
window.opener=null;window.close();
---
谢谢,在C#下,这句<a id="abc" href="http://xunbin.com" target=_blank> 这么写?
<a id="abc" href="http://xunbin.com" target=_blank>
并不是执行打开页面的代码!!!!!完整的写是:
<a id="abc" href="http://xunbin.com" target=_blank>打开页面</a>
也就是说这句html代码是产生在一个页面上的,在这个页面上有一个超连接:打开页面
只有按了这个超连接,才去打开页面:http://xunbin.com;
所以说楼主的问题不好回答!!
Response.Write(" <script>window.close(); </scrpt>");
Response.Write(" <script>window.close(); </scrpt>");
是在 <href></href> 链接的一个属性中设置,具体的属性名我忘了