Problem in firefox when calling window.open

删除回忆录丶 提交于 2020-05-12 11:30:08

问题


When i'm calling this code in the link of a chart in apex

javascript:window.open('http://google.pt','mywindow','width=400,height=200', 'bReplace=true');

it opens a new window with google page but puts the chart page with a blank page with [object Window] wrote on it

How can i maintain the chart page?


回答1:


You need to force the expresion to not return a value:

javascript:void(window.open(...))


来源:https://stackoverflow.com/questions/5820180/problem-in-firefox-when-calling-window-open

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!