Html
thank
-
rescue Messages postés 1047 Statut Contributeur -
rescue Messages postés 1047 Statut Contributeur -
Bonjour,
je cherche à creer pour mon site, un lien qui ouvrira une nouvelle fenètre explorer mais de dimension choisi. Alors j'ai cherché, et j'ai crée ceci (lol) moi inculte de la programmation !
merci de me dire si cela fonctionnera !
<a href="mapage.htm"target=window.open('url', 'titre', 'height=100, width=200, top=100, left=100, toolbar=no, menubar=yes, location=no, resizable=yes, scrollbars=no, status=no'); return false;"
De plus, dans qu'elle partie de mon fichier source dois-je le mettre ?
merci d'avance
je cherche à creer pour mon site, un lien qui ouvrira une nouvelle fenètre explorer mais de dimension choisi. Alors j'ai cherché, et j'ai crée ceci (lol) moi inculte de la programmation !
merci de me dire si cela fonctionnera !
<a href="mapage.htm"target=window.open('url', 'titre', 'height=100, width=200, top=100, left=100, toolbar=no, menubar=yes, location=no, resizable=yes, scrollbars=no, status=no'); return false;"
De plus, dans qu'elle partie de mon fichier source dois-je le mettre ?
merci d'avance
A voir également:
- Html
- Editeur html - Télécharger - HTML
- Espace en html ✓ - Forum HTML
- Nbsp html ✓ - Forum Webmastering
- [**] Balise pour un espace vide en hml. Merci ✓ - Forum Webmastering
- Html download - Télécharger - HTML
1 réponse
Bonjour
Voici le code qui fonctionne :
Entre les balises <head> </head>
tu insères :
-----------------------------------------------------------
<script type="text/javascript">
<!--
function OuvrirPopup(page,nom,option)
{
window.open(page,nom,option);
}
-->
</script>
-------------------------------------------------------------
Entre les balises <body> </body> de ta même page tu insères :
-----------------------------------------------------------------
<a href=\"javascript:OuvrirPopup('mapage.html', '', 'resizable=yes, location=no, width=640, height=480, status=no, scrollbars=yes, menubar=no')\">Ouvrir</a>
-----------------------------------------------------------------
@+
Voici le code qui fonctionne :
Entre les balises <head> </head>
tu insères :
-----------------------------------------------------------
<script type="text/javascript">
<!--
function OuvrirPopup(page,nom,option)
{
window.open(page,nom,option);
}
-->
</script>
-------------------------------------------------------------
Entre les balises <body> </body> de ta même page tu insères :
-----------------------------------------------------------------
<a href=\"javascript:OuvrirPopup('mapage.html', '', 'resizable=yes, location=no, width=640, height=480, status=no, scrollbars=yes, menubar=no')\">Ouvrir</a>
-----------------------------------------------------------------
@+