Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem in firefox when calling window.open

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?

like image 700
macwadu Avatar asked Apr 28 '11 14:04

macwadu


1 Answers

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

javascript:void(window.open(...))
like image 124
SLaks Avatar answered Oct 07 '22 17:10

SLaks