Javascript problems:

by "Antonio R." <aroh2002(at)hotmail.com>

 Date:  Mon, 2 Dec 2002 21:56:32 -0700
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi. Two questions:

1.- Can anyone tell me what is wrong with this small script:

<script Language=3D"JavaScript">
<!--
function add_bookmark() {
var browsName =3D navigator.appName;=20
if (browsName =3D=3D "Microsoft Internet Explorer") {=20
null; ('http://www.hombredehoy.net','Hombre de Hoy');
} else=20
if (browsName =3D=3D "Netscape") {
alert ("\nPara agregar este sitio a tus Favoritos presiona CTRL+D"); } }
//--> </script>
        <a href=3D"javascript:add_bookmark();" class=3D"lbbu10">Agrega:
<B>HombredeHoy.net</B> A Tus Favoritos</a>

it does what it has to do in Netscape, but in IE it doesn=92t add my =
site
to the bookmarks. If you want to check it my URL is
http://www.hombredehoy.net/index.html

2.- I need one of those links that closes a window. I use a small pop up
form and I need that the user is able to close it with a link :)

TIA
Antonio R.=20

HombredeHoy.net=20

AROH2002(at)Hotmail.com=20
ICQ: 18319148=20

"Dream as if you'll live forever. Live as if you'll die today."=20
"Sue=F1a como si fueras a vivir por siempre. Vive como si fueras a morir
hoy."=20
James Dean (1931-1955)

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.