javascript - Cannot launch native blackberry BB10 browser as a separate session -


this >button< code i've been using open site in separate browser window:

<button type="button" onclick="window.open('http://www.tc.gc.ca/eng/railsafety/rules-tco93.htm','_blank')">cror</button>    

the >button< code works expected when i'm using eclipse/phonegap develop blackberry z10 app. tap on button , site opens in separate window.

i'm in process of switching blackberry's webworks platform. when same code executed browser window opens on top of app. how open in it's own window?

i've been through other examples found on stackoverflow seem deal older blackberry os's , devices.

i've looked @ blackberry's doc's , seem contradictory (i guess platform new it's evolving quickly).

thanks rob

i wrote pretty sample blackberry webworks github repo. show how this. can couple of ways.

javascript

  // top   var link = document.getelementbyid('vtop');   link.addeventlistener('click', function(e) {     e.preventdefault();     childwindow = window.open('http://developer.blackberry.com', '_top');   }); 

inline

<a href="http://developer.blackberry.com" target="_top">click me</a> 

note in webworks you'll want 'white-list' domain you're attempting access well. check out full sample here: bb10-webworks-samples/childbrowser


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -