how to pass javascript function argument within JSF component?

Posted by Milan on Stack Overflow See other posts from Stack Overflow or by Milan
Published on 2010-05-27T08:36:15Z Indexed on 2010/05/27 8:41 UTC
Read the original article Hit count: 207

Filed under:
|

Hello everybody!

I have the folowing code:

<script Language="JavaScript">
function load(url) {
var load = window.open(url,'','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
</script>
<h:commandLink value="aaa" onclick="load('<h:outputText value="http://www.google.com" /> '); />

I want to pass attribute in JS function but probably inside onclick is not the right way.

Any solution?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jsf