Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何在提示框打开时单击其他选项卡_Javascript_Jquery_Html - Fatal编程技术网

Javascript 如何在提示框打开时单击其他选项卡

Javascript 如何在提示框打开时单击其他选项卡,javascript,jquery,html,Javascript,Jquery,Html,我有一个提示框,用户可以输入链接,但是如果他们还没有要粘贴的链接,他们必须关闭该框,因为它不允许他们单击任何其他选项卡,然后获取链接,然后点击按钮返回提示框 有没有一种方法可以让用户在不关闭提示框的情况下单击另一个选项卡 $('.stillWrong').on('click', function(){ $('.correctTab').hide(); var theTab = prompt('Paste your tab link here.'); $('.tabs-resul

我有一个提示框,用户可以输入链接,但是如果他们还没有要粘贴的链接,他们必须关闭该框,因为它不允许他们单击任何其他选项卡,然后获取链接,然后点击按钮返回提示框

有没有一种方法可以让用户在不关闭提示框的情况下单击另一个选项卡

$('.stillWrong').on('click', function(){ 
  $('.correctTab').hide(); 

  var theTab = prompt('Paste your tab link here.');
  $('.tabs-results').empty(); 

  $('.tabs-results').html('<iframe src="' + theTab + '"' + 'width="850" + height="975" frameborder="0"' + 'allowtransparency="true" scrolling="yes" sandbox="allow-forms allow-scripts">' + '</iframe>'); })
$('.StillError')。在('click',function(){
$('.correctTab').hide();
var theTab=prompt('在此处粘贴选项卡链接');
$('.tabs results').empty();
$('.tabs results').html('+'';})

你能发布你的代码吗?一些代码可以帮助:)使用javascript的本机
提示符
方法无法做到这一点,但是你可以构建一个自定义的提示符框,允许使用html表单和一些javascript和CSS将该行为“弹出”到页面的其余部分。如果你使用
提示符()
codecode$('.StillError').on('click',function(){$('.correctab').hide();var theTab=prompt('Paste your tab link here');$('tabs results').empty();$('.tabs results').html(''+'';});你能发布你的代码吗?一些代码可以帮助:)使用javascript的本机
提示符
方法无法做到这一点,但是你可以构建一个自定义的提示框,允许使用html表单和一些javascript和CSS的行为使其在页面的其余部分上方“弹出”。如果你使用
提示符()
codecode$('.StillError').on('click',function(){$('.correctab').hide();var theTab=prompt('Paste your tab link here');$('tabs results').empty();$('.tabs results').html(''+'';});