Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/464.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
C# Window.open将父页面导航到代码行url_C#_Javascript_Imagemap - Fatal编程技术网

C# Window.open将父页面导航到代码行url

C# Window.open将父页面导航到代码行url,c#,javascript,imagemap,C#,Javascript,Imagemap,伙计们,我在c#中使用imagemap,在代码中提供导航到imagemap。我希望新页面作为弹出窗口出现,我成功了。但在mozilla中,我的父页面将url更改为: "javascript:window.open('WebForm1.aspx','Graph','height=600,width=900');" 它在铬上工作很好 我将url绑定到热点的c#代码如下: RectangleHotSpot rh; CoordBAL _cbl = new CoordBAL(SessionContext

伙计们,我在c#中使用imagemap,在代码中提供导航到imagemap。我希望新页面作为弹出窗口出现,我成功了。但在mozilla中,我的父页面将url更改为:

"javascript:window.open('WebForm1.aspx','Graph','height=600,width=900');"
它在铬上工作很好

我将url绑定到热点的c#代码如下:

RectangleHotSpot rh;
CoordBAL _cbl = new CoordBAL(SessionContext.SystemUser);

rh = new RectangleHotSpot();

rh.Top =  0;
rh.Bottom =500 ;
rh.Left = 0 ;
rh.Right = 500 ;
rh.NavigateUrl = "javascript:window.open('default.aspx','Graph','height=600,width=900');";

ImgMp.HotSpots.Add(rh);
我得到了答案:

rh.NavigateUrl = "javascript:void(window.open('default.aspx','Graph','height=600,width=900'););";