【问题标题】:Window.open navigates parent page to codeline urlWindow.open 将父页面导航到代码行 url
【发布时间】:2013-09-26 06:45:04
【问题描述】:

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

"javascript:window.open('WebForm1.aspx','Graph','height=600,width=900');"

在 chrome 中运行良好

我用于将 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);

【问题讨论】:

    标签: c# javascript imagemap


    【解决方案1】:

    我得到了答案:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-13
      • 1970-01-01
      • 1970-01-01
      • 2019-12-09
      • 1970-01-01
      • 1970-01-01
      • 2016-05-03
      • 1970-01-01
      相关资源
      最近更新 更多