Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set mutipule inAppBrowser options

I would like to set both hidden and location to 'no' When I try individually it works.

In the following it doesn't. pls help.

var ref = window.open('http://apache.org', '_blank', 'location=no&hidden=no');
ref.addEventListener('loadstart', function() { alert(event.url); });
like image 323
5x7Code Avatar asked Oct 04 '13 12:10

5x7Code


1 Answers

You need to separate the options by a comma. From the Phonegap documentation: "The options string must not contain any blank space, and each feature's name/value pairs must be separated by a comma. Feature names are case insensitive." So you would want something like:

var ref = window.open('http://apache.org', '_blank', 'location=no,hidden=no');
like image 152
Maj0rPaine Avatar answered Oct 16 '22 08:10

Maj0rPaine