How do I get the browser's "home" URL?

G

Gabriella

Hi,

I would like to know how to find out which is the browser's "home"
URL?
This is so I'll be able to suggest "set as homepage" for my website,
only for those who did not set it beforehand.
I know there's a security issue with this, but is there some
workaround it?

Thanks,
Gabi
 
R

Richard Cornford

Gabriella said:
I would like to know how to find out which is the browser's
"home" URL?
This is so I'll be able to suggest "set as homepage" for
my website, only for those who did not set it beforehand.
I know there's a security issue with this,

It is a privacy issue not a security issue. My home page(s) are nobody's
business but my own (except maybe at work, where they still don't become
your bussiness).
but is there some workaround it?

No, that probably would be a security issue. (Indeed, if security on an
IE browser was set so low that you could instantiate a windows scripting
host ActiveX instance then you could go and get the home page
information out of the user's registry, install any spyware you wanted,
upload the contents of and then re-format their hard discs, and so on.)

Richard.
 
T

Thomas 'PointedEars' Lahn

Gabriella said:
I would like to know how to find out which is the browser's "home"
URL?

You can not.
This is so I'll be able to suggest "set as homepage" for my website,
only for those who did not set it beforehand.

You should not.
I know there's a security issue with this, but is there some
workaround it?

There is not.


HTH

PointedEars
 
T

Thomas 'PointedEars' Lahn

John said:
You can invite the user to set your site as their home page, but you cannot
know what their homepage is.

<font face="arial" size="1">

Wake up, CSS 2 is there since more than 9 years.
<a href="#" onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.xyz.com');">Set xyz.com as Homepage
</a>

This will result almost always in a runtime error. Either because
`this.style' (implemented as a CSSStyleDeclaration object) has no `behavior'
property (as that is MSHTML-proprietary), or because HTMLAnchorElement
objects have no setHomePage() method, or because this method is not allowed
to be called due to security restrictions. Or it would not work at all
because client-side scripting is disabled or not even supported.

This must be one of the worst examples I have seen to date.


PointedEars
 
T

The Magpie

Gabriella said:
I would like to know how to find out which is the browser's "home"
URL?
This is so I'll be able to suggest "set as homepage" for my website,
only for those who did not set it beforehand.
I know there's a security issue with this, but is there some
workaround it?
You ask them - and they probably refuse to tell you. In short, forget
the whole idea.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top