Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/465.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_Html_Popup_Window - Fatal编程技术网

Javascript 弹出窗口的确切功能是什么?

Javascript 弹出窗口的确切功能是什么?,javascript,html,popup,window,Javascript,Html,Popup,Window,这是弹出框的代码: <?php $getBtsid = $_REQUEST['uid']; $btsid = substr($getBtsid, 0, -1); ?> <center> <?php conFunc($db); // Connection Function $congestedsite = mysql_query("SELECT * FROM `rollout_tracker` WHERE `site_id` LIKE '%".$btsid."'

这是弹出框的代码:

<?php
$getBtsid = $_REQUEST['uid'];
$btsid = substr($getBtsid, 0, -1);
?>

<center>

<?php
conFunc($db); // Connection Function

$congestedsite = mysql_query("SELECT * FROM `rollout_tracker` WHERE `site_id` LIKE '%".$btsid."'");
while($rows = mysql_fetch_array($congestedsite))
{
    echo "<b>BTS ID:</b> " . $btsid . "<br />";
    echo "<b>Sector ID:</b> " . substr($getBtsid, -1) . "<br />";
}
echo "<br /><br /><br />";
echo '<a href="javascript:window.close();">CLOSE WINDOW</a>';  
?>
虽然这段代码可以正常工作,但它不知何故影响了我的其他JavaScript代码

我不明白原因。也许,我在代码中遗漏了一些东西

有人能帮我解决这个问题吗?请?

对我有用

function OpenCustomerInfo(OrderID) {
    CustomerInfoWin = window.open('customer_details.asp?orderid=' + OrderID, 
    'CustomerInfoWin',
    'width=600, 
     height=300, 
     left=200, 
     top=200, 
     resizable=yes,
     scrollbars=no,
     menubar=yes')

    CustomerInfoWin.focus();
 }

通过您自己的编写,代码正在运行。问题是什么?但是对于这段代码,其他JavaScript代码不起作用,所以我想我可能对这段代码块做了一些错误的事情!这就是为什么我要和大家分享,看看我是否对这些代码做了一些错误的事情。那么,在其他代码中什么是“不起作用”呢?你怎么知道有什么地方出了问题,更重要的是,你为什么认为是这一块造成的?
function popcontact(URL)
{
    var popup_width = 600;
    var popup_height = 400;
    var day = new Date();
    var id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width='+popup_width+',height='+popup_height+'');");
}
function OpenCustomerInfo(OrderID) {
    CustomerInfoWin = window.open('customer_details.asp?orderid=' + OrderID, 
    'CustomerInfoWin',
    'width=600, 
     height=300, 
     left=200, 
     top=200, 
     resizable=yes,
     scrollbars=no,
     menubar=yes')

    CustomerInfoWin.focus();
 }