Hello,
> @Piotr
>
> I have tried using target="_blank" as an attribute of the <form> tag.
> It does what you would expect - it opens the result in a new window. I
> then tried target="javascript:popup()" where popup is a javascript
> function that open a popup, but this seems to be ignored by the
> browser. It did not work.
You'd have to open new popup first with javascript. You can bind a
function to submit button to open new window just before the form is
actually submitted:
<button onclick='window.open("http://www.cnn.com/", "CNN_WindowName",
strWindowFeatures);' ... />
and then:
<form ... target="CNN_WindowName">
It should work, but some browsers might refuse to launch windows in
proper order.
One more reference link:
https://developer.mozilla.org/En/DOM/Window.open
Regards,
Piotr
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en