D
dlf
Hello,
I'm building a little web with php and javascript. I have inside HEAD
the following function:
This function receives as parameters a url and a string. In the url it
changes "aaaa" chars, inserting the value received in the string.
<script type="text/javascript">
function abrir(url,cadena){
nuevaurl=url.replace("aaaa",cadena);
window.open(nuevaurl);
}
</script>
I call it with these lines:
<INPUT onclick='abrir("<? echo$row_lista['url'];?>",unico.value)'
type=button value=OK name=button_nameprod>
My problem is that it works perfectly with ie6, but not with firefox.
I push the button and it happens nothing.
Any suggestion? Is it something related to my use of window.open?
Thanks a lot!
I'm building a little web with php and javascript. I have inside HEAD
the following function:
This function receives as parameters a url and a string. In the url it
changes "aaaa" chars, inserting the value received in the string.
<script type="text/javascript">
function abrir(url,cadena){
nuevaurl=url.replace("aaaa",cadena);
window.open(nuevaurl);
}
</script>
I call it with these lines:
<INPUT onclick='abrir("<? echo$row_lista['url'];?>",unico.value)'
type=button value=OK name=button_nameprod>
My problem is that it works perfectly with ie6, but not with firefox.
I push the button and it happens nothing.
Any suggestion? Is it something related to my use of window.open?
Thanks a lot!