[Javascript] setting site as home page by clicking

Alexis Perrier aperrier at noos.fr
Wed May 2 07:06:54 CDT 2001


Thank you Alan
It works fine for IE but does nothing for NN
So I have to check for the browser used
And then I have a big problem dealing with ' and " since I use
document.write(' .. '); to tell the browser what to do.
The script I am trying to use is :
-------------------------
<SCRIPT LANGUAGE="JavaScript">
<!--
if ((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4)) {
   document.write('<a HREF=#
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http
://www.parolesdenfants.com/paroles2.php');"><img src=images/favoris2.gif
border=0 ></a>');
}
// End -->
</script>
------------------------
which does not work.

How would you solve that ?
Thanks
Alexis


Alexis Perrier
@P web production
http://www.mailevore.com/ap-production

----- Original Message -----
From: "Alan Easton" <alan.easton at unn.ac.uk>
To: <javascript at LaTech.edu>
Sent: Tuesday, May 01, 2001 1:02 PM
Subject: RE: [Javascript] setting site as home page by clicking


>
> I don't think any script will automatically set a page as a
homepage,without user agreement.
>
> This script asks if you want the existing page as a homepage...
>
> <a class="chlnk" style="cursor:hand" HREF
>
onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http
> ://page_you_want_as_homepage');">Click here to make this page your default
> homepage</a>
>
> It throws up a pop up box, asking for yes/no confirmation. Don't know how
> cross browser friendly it is.
>
> AE...
>
> -----Original Message-----
> From: Alexis Perrier [mailto:aperrier at noos.fr]
> Sent: Tuesday, May 01, 2001 11:51 AM
> To: javascript
> Subject: [Javascript] setting site as home page by clicking
>
>
>
> SorryI sent the message using a reply-to so that I didn't have to find the
> adress
> of the list
> But no one answered my question
> So here it is again...
> My client is sure she found a site where you could click and the site
would
> register as your default homepage, but she can't remember which site it
was,
> and I don't think I ever noticed such a thing on the web. (Maybe I wasn't
> looking)
>  So your help will be greatly appreciated
> Thanks
> Alexis
>
> --------------------------
> Hello,
> I would like people to be able to register a given page as  their home
page
> site just by clicking on a link.
>  Would anyone know how to do that ?
> Also, I found how to have them bookmark the active page in their favorites
> for IE but can't find the thing for Netscape.
>  Any idea
> Thanks for your help
>  Alexis Perrier
>  @P web production
>  http://www.mailevore.com/ap-production
>
> > >
> > >
> > >
> > > _______________________________________________
> > > Javascript mailing list
> > > Javascript at LaTech.edu
> > > http://www.LaTech.edu/mailman/listinfo/javascript
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list