• <legend id='boUSx'><style id='boUSx'><dir id='boUSx'><q id='boUSx'></q></dir></style></legend>
          <bdo id='boUSx'></bdo><ul id='boUSx'></ul>

        <tfoot id='boUSx'></tfoot>

      1. <i id='boUSx'><tr id='boUSx'><dt id='boUSx'><q id='boUSx'><span id='boUSx'><b id='boUSx'><form id='boUSx'><ins id='boUSx'></ins><ul id='boUSx'></ul><sub id='boUSx'></sub></form><legend id='boUSx'></legend><bdo id='boUSx'><pre id='boUSx'><center id='boUSx'></center></pre></bdo></b><th id='boUSx'></th></span></q></dt></tr></i><div id='boUSx'><tfoot id='boUSx'></tfoot><dl id='boUSx'><fieldset id='boUSx'></fieldset></dl></div>

        <small id='boUSx'></small><noframes id='boUSx'>

        如何在弹出窗口中打开一个新标签?

        How to open up a new tab in a pop-up?(如何在弹出窗口中打开一个新标签?)
      2. <legend id='1Vizw'><style id='1Vizw'><dir id='1Vizw'><q id='1Vizw'></q></dir></style></legend>

          <small id='1Vizw'></small><noframes id='1Vizw'>

          • <tfoot id='1Vizw'></tfoot>

            <i id='1Vizw'><tr id='1Vizw'><dt id='1Vizw'><q id='1Vizw'><span id='1Vizw'><b id='1Vizw'><form id='1Vizw'><ins id='1Vizw'></ins><ul id='1Vizw'></ul><sub id='1Vizw'></sub></form><legend id='1Vizw'></legend><bdo id='1Vizw'><pre id='1Vizw'><center id='1Vizw'></center></pre></bdo></b><th id='1Vizw'></th></span></q></dt></tr></i><div id='1Vizw'><tfoot id='1Vizw'></tfoot><dl id='1Vizw'><fieldset id='1Vizw'></fieldset></dl></div>

                <tbody id='1Vizw'></tbody>
                  <bdo id='1Vizw'></bdo><ul id='1Vizw'></ul>
                  本文介绍了如何在弹出窗口中打开一个新标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对编程了解不多,但不知何故我设法使弹出窗口工作.但是,我需要在新窗口(弹出窗口)中,弹出窗口上的一个按钮将打开一个新选项卡.但我不需要在主浏览器中打开新标签,我希望它在同一个弹出窗口中打开.

                  I don't know too much about programming but somehow I managed to make a pop-up window work. However, I need that from inside the new window (the pop-up one) a button on the pop-up will open a new tab. But I don't need the new tab open in the main browser, I want it open in the same pop-up.

                  这可能吗?

                  我该怎么做?

                  我同时显示了弹出代码和重定向代码,即目前将人们发送到我的网络浏览器中的另一个选项卡,但我需要在已经打开的同一个弹出窗口中执行此操作.这是弹出窗口中的代码:

                  I show both the pop-up code and the redirection code that is, at present, sending people to another tab in my web browser, but I need to do it in the same pop-up window that is already open. Here is the code in the pop-up:

                  <!DOCTYPE html>
                  <html>
                  <body>
                  
                  <p>Click aquí para escuchar Radio Lineage.</p>
                  
                  <button onclick="myFunction()">Try it</button>
                  
                  <script>
                  function myFunction()
                  {
                  window.open("http://localhost:8000/player/index.html");
                  }
                  </script>
                  
                  </body>
                  </html>
                  

                  这里是新标签的代码:

                  <!DOCTYPE html>
                  <html>
                  <body>
                  .
                  .
                  <script type="text/javascript" src="http://hosted.musesradioplayer.com/mrp.js"></script>
                  <script type="text/javascript">
                  MRP.insert({
                  'url':'localhost:8000/stream',
                  'lang':'es',
                  'codec':'mp3',
                  'volume':65,
                  'autoplay':true,
                  'buffering':5,
                  'title':'Radio LineageChile',
                  'welcome':'Bienvenido a...',
                  'bgcolor':'#FFFFFF',
                  'skin':'radiovoz',
                  'width':220,
                  'height':69
                  });
                  </script>
                  .
                  .
                  </body>
                  </html>
                  

                  推荐答案

                  要在同一个弹出窗口中打开新 URL,我从您的代码中编辑如下:

                  To open new URL in the same popup window, from your code, I edited to below:

                  var win = window.open("http://localhost:8000/player/index.html", 'newwin', 'height=200px,width=200px');
                  

                  运行此行后,将显示新的弹出窗口,高度=200px,宽度=200px.要在同一个弹出窗口 (win) 中打开新 URL,请使用此行

                  after run this line, new popup window will be showed with height=200px, width=200px. To open new URL in the same popup windown (win), use this line

                  win.location = "http://www.google.com"/

                  win.location = "http://www.google.com"/

                  您可以用任何您喜欢的网址替换谷歌网址.

                  You can replace google URL by any URL you like.

                  希望对您有所帮助!祝你好运.强尼

                  Hope it helpful! Good luck. Johnny

                  这篇关于如何在弹出窗口中打开一个新标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)

                  <legend id='k298a'><style id='k298a'><dir id='k298a'><q id='k298a'></q></dir></style></legend>

                    <tbody id='k298a'></tbody>
                  <tfoot id='k298a'></tfoot>

                    • <i id='k298a'><tr id='k298a'><dt id='k298a'><q id='k298a'><span id='k298a'><b id='k298a'><form id='k298a'><ins id='k298a'></ins><ul id='k298a'></ul><sub id='k298a'></sub></form><legend id='k298a'></legend><bdo id='k298a'><pre id='k298a'><center id='k298a'></center></pre></bdo></b><th id='k298a'></th></span></q></dt></tr></i><div id='k298a'><tfoot id='k298a'></tfoot><dl id='k298a'><fieldset id='k298a'></fieldset></dl></div>
                        • <bdo id='k298a'></bdo><ul id='k298a'></ul>
                          1. <small id='k298a'></small><noframes id='k298a'>