Gracias eits, al final ya habia hecho algo parecido, lo que he hecho es hacerlo casi igual que tu, pero en un archivo php, ya que necesito incluir una funcion que tengo:
botones.php
Código:
<?php
include("./funciones/ventanasalir.php");
?>
<DIV ALIGN=right>
<input type=button value="PRINCIPAL" onclick="location='home.php'">
<input type=button value="PERFIL" onclick="location='perfil.php'">
<input type=button value="BUSCAR " onclick="location='busqueda.php'">
<input type=button value="SALIR (log out)" onclick=salir()>
</DIV>
Y luego donde quiero que me aparezcan esos botones hago:
Código:
<?php
include("./funciones/botones.php");
?>
Imagino que esto esta correcto verdad???