dongyi6845 2016-02-05 14:51
浏览 105
已采纳

在另一个屏幕中打开SCORM弹出窗口

I have implemented SCORM in one of my applications and it works perfectly. I am using two screens for development purposes and i want to open SCORM pop-up in the other screen whereas the application will be on screen one(from where the request to open SCORM will be made).

Is it somehow possible to deal with it?

  • 写回答

2条回答 默认 最新

  • dptdb84606 2016-02-08 21:39
    关注

    Chrome's had a issue with this for a bit - popup open position in chrome.

    Also How do I get JavaScript to open a popup window on the current monitor.

    You should be able to use the screen left position though to work out the math. I did something like this to get the window to appear to the left of the browser window. Again, Chrome may be a issue.

    leftPosition = (window.screenLeft != undefined ? window.screenLeft : window.screenX) - width;
    topPosition = 0;
    window.open(url, "Title", "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示