-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
Asked: 2016-02-16 12:47:25 +0800
Seen: 68 times
Last updated: Feb 16 '16
How to control selectAll() feature in a Listbox with multiple=true and checkmark=true
ZK8 Wizard Series: Part 2 now released!
Faster And Lighter, The Performance Test On ZK8
org.zkoss.xel.XelException: Resource not found: http://www.zkoss.org/dsp/web/core
How To Check Dirty Status in ZK8?
Come and join the ''JS'' Hunt!