Connecting Tech Pros Worldwide Forums | Help | Site Map

Javascript to make a page your home page

un1xg33k@gmail.com
Guest
 
Posts: n/a
#1: Feb 14 '06
Hello,

I'd like to find out if the following can be done.

When someone comes to my site I would like to check to see if their
homepage is set to my site. If it is then nothing is done. If it is
not then I'd like a link to appear that asks if they'd like to set
their home page to my site.

Can this be done? If so can someone post the code to do it?

Thanks,

Sean

http://www.Aquaria.Info
http://www.CleanLiving.com
http://www.DigFishDig.com


Janwillem Borleffs
Guest
 
Posts: n/a
#2: Feb 14 '06

re: Javascript to make a page your home page


un1xg33k@gmail.com wrote:[color=blue]
> When someone comes to my site I would like to check to see if their
> homepage is set to my site. If it is then nothing is done. If it is
> not then I'd like a link to appear that asks if they'd like to set
> their home page to my site.
>
> Can this be done? If so can someone post the code to do it?
>[/color]

Check the source of the Google index page (IE only);


JW


Zif
Guest
 
Posts: n/a
#3: Feb 15 '06

re: Javascript to make a page your home page


un1xg33k@gmail.com wrote:[color=blue]
> Hello,
>
> I'd like to find out if the following can be done.
>
> When someone comes to my site I would like to check to see if their
> homepage is set to my site. If it is then nothing is done. If it is
> not then I'd like a link to appear that asks if they'd like to set
> their home page to my site.
>
> Can this be done?[/color]

I hope not.

Pages offering links to "set the current page as your home page" have,
thankfully, almost compeltely disappeared over the last few years.

[color=blue]
> If so can someone post the code to do it?[/color]

I suspect that any such code will only work in certain browsers. I'd
like to see it too - any browser that allows script access to the home
page URL by default would be one to avoid. Any browser that allows
script, by default, to set the home page to some value would be one to
put on a black list of browsers to be completely avoided.



--
Zif
John W. Kennedy
Guest
 
Posts: n/a
#4: Feb 15 '06

re: Javascript to make a page your home page


Zif wrote:[color=blue]
> un1xg33k@gmail.com wrote:[color=green]
>> Hello,
>>
>> I'd like to find out if the following can be done.
>>
>> When someone comes to my site I would like to check to see if their
>> homepage is set to my site. If it is then nothing is done. If it is
>> not then I'd like a link to appear that asks if they'd like to set
>> their home page to my site.
>>
>> Can this be done?[/color]
>
> I hope not.
>
> Pages offering links to "set the current page as your home page" have,
> thankfully, almost compeltely disappeared over the last few years.
>
>[color=green]
>> If so can someone post the code to do it?[/color]
>
> I suspect that any such code will only work in certain browsers. I'd
> like to see it too - any browser that allows script access to the home
> page URL by default would be one to avoid. Any browser that allows
> script, by default, to set the home page to some value would be one to
> put on a black list of browsers to be completely avoided.[/color]

I just upgraded to Norton AntiVirus 2006 yesterday, and notice that it
includes a home-page-resetting blocker for IE.

--
John W. Kennedy
"But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
-- Charles Williams. "Judgement at Chelmsford"
Randy Webb
Guest
 
Posts: n/a
#5: Feb 15 '06

re: Javascript to make a page your home page


John W. Kennedy said the following on 2/14/2006 7:51 PM:[color=blue]
> Zif wrote:[color=green]
>> un1xg33k@gmail.com wrote:[color=darkred]
>>> Hello,
>>>
>>> I'd like to find out if the following can be done.
>>>
>>> When someone comes to my site I would like to check to see if their
>>> homepage is set to my site. If it is then nothing is done. If it is
>>> not then I'd like a link to appear that asks if they'd like to set
>>> their home page to my site.
>>>
>>> Can this be done?[/color]
>>
>> I hope not.
>>
>> Pages offering links to "set the current page as your home page" have,
>> thankfully, almost compeltely disappeared over the last few years.
>>
>>[color=darkred]
>>> If so can someone post the code to do it?[/color]
>>
>> I suspect that any such code will only work in certain browsers. I'd
>> like to see it too - any browser that allows script access to the home
>> page URL by default would be one to avoid. Any browser that allows
>> script, by default, to set the home page to some value would be one to
>> put on a black list of browsers to be completely avoided.[/color]
>
> I just upgraded to Norton AntiVirus 2006 yesterday, and notice that it
> includes a home-page-resetting blocker for IE.
>[/color]

I tested Norton a few weeks ago. The only problem it found? It had a
major red-flag that I had a virus *and* a trojan. It's proof? My
homepage had been set (by me no less) to about: blank and according to
Norton that was resounding proof that I had a trojan and a virus.

I trust Norton as far as it takes me to click the "Uninstall this junk"
button on it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
trippy
Guest
 
Posts: n/a
#6: Feb 15 '06

re: Javascript to make a page your home page


In article <7MGdndeuhsSoVW_eRVn-gQ@comcast.com>, Randy Webb took the
hamburger, threw it on the grill, and I said "Oh wow"...
[color=blue]
> John W. Kennedy said the following on 2/14/2006 7:51 PM:[color=green]
> > Zif wrote:[color=darkred]
> >> un1xg33k@gmail.com wrote:
> >>> Hello,
> >>>
> >>> I'd like to find out if the following can be done.
> >>>
> >>> When someone comes to my site I would like to check to see if their
> >>> homepage is set to my site. If it is then nothing is done. If it is
> >>> not then I'd like a link to appear that asks if they'd like to set
> >>> their home page to my site.
> >>>
> >>> Can this be done?
> >>
> >> I hope not.
> >>
> >> Pages offering links to "set the current page as your home page" have,
> >> thankfully, almost compeltely disappeared over the last few years.
> >>
> >>
> >>> If so can someone post the code to do it?
> >>
> >> I suspect that any such code will only work in certain browsers. I'd
> >> like to see it too - any browser that allows script access to the home
> >> page URL by default would be one to avoid. Any browser that allows
> >> script, by default, to set the home page to some value would be one to
> >> put on a black list of browsers to be completely avoided.[/color]
> >
> > I just upgraded to Norton AntiVirus 2006 yesterday, and notice that it
> > includes a home-page-resetting blocker for IE.
> >[/color]
>
> I tested Norton a few weeks ago. The only problem it found? It had a
> major red-flag that I had a virus *and* a trojan. It's proof? My
> homepage had been set (by me no less) to about: blank and according to
> Norton that was resounding proof that I had a trojan and a virus.
>
> I trust Norton as far as it takes me to click the "Uninstall this junk"
> button on it.
>
>[/color]

I have norton, I've set my homepage to about:blank and it didn't do it
for me.

--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "I Am The Law" -- Anthrax

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"





























Closed Thread