1

I'm executing the following script in Google Chrome:

window.open('form.xhtml', '_blank');

However, it opens the page in a new window instead of a new tab. How can I open it in a new tab?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user3503888
  • 435
  • 5
  • 17
  • you might want to take a look at here: http://stackoverflow.com/questions/11999837/force-window-open-to-create-new-tab-in-chrome – tt_emrah Sep 18 '14 at 06:16
  • I tryed but didn´t find a solution, it works well on `Firefox` or `Internet Explorer` – user3503888 Sep 25 '14 at 14:33

1 Answers1

0

you can see the blog 'http://www.cnblogs.com/xiyangbaixue/p/3959954.html',as you did, window.open(,'_blank') will open a new window, you should remove the param of '_blank'

  • Ok, but how can I redirect to this JSF page? If I am in a `list.xhtml` and need to open in the new tab `form.xhtml`? Using `action` method? – user3503888 Sep 18 '14 at 08:57