调用window.open时在Firefox中出现问题 [英] Problem in firefox when calling window.open

查看:155
本文介绍了调用window.open时在Firefox中出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在顶点的图表链接中调用此代码时

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');

它会打开一个带有Google页面的新窗口,但会在图表页面上放置一个空白页面,上面写有[object Window]

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

如何维护图表页面?

推荐答案

您需要强制表达式不返回值:

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

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

这篇关于调用window.open时在Firefox中出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆