1,怎样打开一个页面,原来的页面不消逝,不要用这个哈window.open()
2,一般网站打开一个页面的内容有,有个[关闭本页],请问怎样关闭一个页面,注意这个页面不是用window.open()打开的哈

解决方案 »

  1.   

    1\<a href=".." target=_blank>2\window.close();
      

  2.   

    1,必须用BUTTON才行啊
    response.write("<script><a href=".." target=_blank></script>"); 这个我想不行的
    2\response.write("<script>window.close()</script>");这个我试了,关不了
      

  3.   

    1 用a标签 target 设置为 _blank2 window.close()元旦快乐!!
      

  4.   

    打开新页:
    <a href="新页面的URL" target="_blank">打开新页面</a>关闭:
    <input type="button" onclick="javascript:window.close()" value="关闭本页"/>
      

  5.   

    第一个问题你想要什么样的效果?另外弹出个页面楼上就可以了。
    第二个问题你可以自己
    <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)">
    这个是没有弹出窗口提示的办法。
      

  6.   

    用a标签 target 设置为 _blank
    ----
    因为这个跳转必须要经过判断,所以必须用BUTTON,怎么办呢? 
      

  7.   

    < a href="" target="_blank"></a>
    Response.Write("<script>window.close();</scrpt>");
      

  8.   

    第一个问题你想要什么样的效果?另外弹出个页面楼上就可以了。 
    ---
    我要判断导航到哪个页面,
    if(OK)
    <a href=".." target=_blank> 
    ELSE
    <a href=".." target=_blank> 
      

  9.   

    就直接在aspx页面上写:
    <% if(....)
    {
    %>
       <a href=".." target=_blank> 
    <%
    }
    else
    {
    %>
       <a href=".." target=_blank> 
    <%
    }
    %>
    这可以这样写,过去的asp分格!!!
      

  10.   

    我就是要问在CS下怎么写这句<a href=".." target=_blank> ???
      

  11.   

    第一个问题:
    <a id="abc" href="http://xunbin.com" target=_blank>
    <input type="button" value="打开" onclick="document.getElementById('abc').click()">
    第二个
    window.opener=null;window.close();
      

  12.   

    第一个问题: 
    <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> 这么写?
      

  13.   

    楼主这句html代码
    <a id="abc" href="http://xunbin.com" target=_blank>
    并不是执行打开页面的代码!!!!!完整的写是:
    <a id="abc" href="http://xunbin.com" target=_blank>打开页面</a>
    也就是说这句html代码是产生在一个页面上的,在这个页面上有一个超连接:打开页面
    只有按了这个超连接,才去打开页面:http://xunbin.com;
    所以说楼主的问题不好回答!!
      

  14.   

    关闭用window.close应该很方便!
      

  15.   

    忘了说我是在框架里关闭,用window.close关闭不了
      

  16.   

    < a href="" target="_blank"> </a> 
    Response.Write(" <script>window.close(); </scrpt>");
      

  17.   

    < a href="#" target="_blank"> </a> 
    Response.Write(" <script>window.close(); </scrpt>");
      

  18.   

     你可以用HTML语言设置,
     是在 <href></href> 链接的一个属性中设置,具体的属性名我忘了