Problem in firefox when calling window.open

2020-08-11 05:37发布

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条回答
一夜七次
2楼-- · 2020-08-11 06:27

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

javascript:void(window.open(...))
查看更多
登录 后发表回答