RE: Javascript problems:
by Klaas De Waele <klaas(at)grace.be>
|
| Date: |
Tue, 3 Dec 2002 08:50:33 +0100 |
| To: |
"'Antonio R.'" <aroh2002(at)hotmail.com> |
| Cc: |
hwg-techniques(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
the window close command:
onClick=3D"this.close();"
or
a href=3D"javascript:this.close();"
(to be displayed in the window)
in order for the window to reappear when relaunching (you'll see what I =
mean
when you bring the main window to the front and click the popup link =
again):
body onload=3D"self.focus();"
(in the popup window)
to add to favourites:
window.external.Addfavorite('http://www.laphan.co.uk/about.html', About
Page')
- Kayjey -
www.fiatcoupe.net
-----Original Message-----
From: Antonio R. [mailto:aroh2002(at)hotmail.com]
Sent: Tuesday, December 03, 2002 5:57 AM
To: hwg-techniques(at)hwg.org
Subject: Javascript problems:
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't 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.