0

Open new window or tab

asked 2016-02-16 12:47:25 +0800

DMH gravatar image DMH
35 6

I've been searching the forum but so far every answer hasn't worked.

I'm using Safari and i'm doing Executions.getCurrent().sendRedirect(url,"_blank") but nothing happens on the browser.

So I tried it with javascript by adding (the backwards slash is so the text will show) <\script type="text/javascript" src="newWindow.js"></script> and in the newWindow.js file I have a function defined like this :function newWindow(url) { var win = window.open(url,'_blank'); } and nothing happens as well.

Can anyone tell me what I'm doing wrong?

Thanks

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-16 23:10:14 +0800

Darksu gravatar image Darksu
1991 1 4

Hello DMH,

Please find below a working sample:

http://zkfiddle.org/sample/26qv3sl/2-ZK-opens-new-window#source-1

Keep in mind the the browser may block the creation of the new tab, thus you have to unlock it.

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

Thank you for your answer Darksu but this does nothing on my browsers (Chrome and Safari).

Everything is processed but the browser doesn't react to it.

DMH ( 2016-02-17 15:16:10 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-02-16 12:47:25 +0800

Seen: 68 times

Last updated: Feb 16 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More