Salut!
Voila g cette petite fonction js (bien mise ds la page html), et je voudrais la syntaxe pour le lien pour ouvrir une fenetre
en cliquant sur le lien sus-cité.
g essayé <a href=fenetre(...)>...</a> mais marche pas :-/
<script language="javascript">
<!--
var PopUpWindow;
function fenetre(src,name,width, height, screenx, screeny, scrollbar, resize, toolbar, status, menubar, location, directories) {
var size, pos;
size = '';
pos = '';
if (width > 0) size = ',width='+width;
if (height > 0) size = size + ',height='+height;
if (screenx >= 0) pos = ',screenX='+screenx+',left='+screenx;
if (screeny >= 0) pos = pos + ',screenY='+screeny+',top='+screeny;
scrollbar = (scrollbar == 1)?'yes':'no';
resize = (resize == 1)?'yes':'no';
toolbar = (toolbar == 1)?'yes':'no';
status = (status == 1)?'yes':'no';
menubar = (menubar == 1)?'yes':'no';
location = (location == 1)?'yes':'no';
directories = (directories == 1)?'yes':'no';
//Ouverture de la pop-up
PopUpWindow = window.open(src, name,'scrollbars='+scrollbar+',resizable='+resize+',toolbar='+toolbar+',status='+status+',menubar='+menubar+',location='+location+',directories='+directories+size+pos);
PopUpWindow.focus();
}
//-->
</script>