Set user's home page automatically?

reinie

Elite Member
Joined
Jan 16, 2009
Messages
1,576
Reaction score
1,046
Guys
I have been searching for this answer with no success.

I want to set visitors homepage to a site without promting them.
I did a few google searches and found this one that said it is possible but requires ActiveX
http://www.webmasterworld.com/forum91/1685.htm

Can anyone please assist me on how to do this?
Thanks ;-)
 
Ooo bit of a tricky one since the old days of Javascript fun and games.
I thought this would of worked:

Code:
<html>
<head>
<script type="text/javascript">
function setHome() 
{
	document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage('http://bbc.co.uk');
}
</script>
</head>

<body onLoad="setHome()">
:)
</body>

</html>

However, there is a permission denied message when I try it in IE......oooo I see a challenge :D
 
will pay for a solution.. :-)
 
Ooo bit of a tricky one since the old days of Javascript fun and games.
I thought this would of worked:

Code:
<html>
<head>
<script type="text/javascript">
function setHome() 
{
	document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage('http://bbc.co.uk');
}
</script>
</head>

<body onLoad="setHome()">
:)
</body>

</html>

However, there is a permission denied message when I try it in IE......oooo I see a challenge :D

Which browsers does it work in?
 
Has anyone checked it out yet?
 
Guys
I have been searching for this answer with no success.

I want to set visitors homepage to a site without promting them.
I did a few google searches and found this one that said it is possible but requires ActiveX
http://www.webmasterworld.com/forum91/1685.htm

Can anyone please assist me on how to do this?
Thanks ;-)

Which scripting language and server OS r u using ?
 
This should work if you keep this inside the head tags
HTML:
<META  http-equiv="refresh"  content="1;URL=http://bbc.co.uk">
 
sounds like a great way to get banned by your host. I know I'd report you in a new york minute.
 
Yes that only directs them...
 
Yes it will only redirect. if the server is apache you can use .htaccess or global.asa if IIS Server

it will be good to know for which webserver you want to configure for
 
I bumped this thread to see if anyone had figured out a way yet?
 
Yea..Your best bet is redirecting them. Setting something as their homepage would be pretty tricky.
 
most of the ways to do this have been sandboxed by current browsers, probably for exactly the reason you want to do it. ;)

active x would probably work great for it, only problem being that most modern browsers are also pretty strict about client executable code as well. ie will prompt the hell out of you when a site tried to install or execute an active x control unless you have your security settings very low or already have a trust relationship with the site. since your average surfer tends to leave their security settings in the out of the box configuration, that would probably make this a hit or miss proposition as well.

i'm sure there are exploits out there somewhere though. good luck.
 
Yeah, there is no way to do this currently. It would be grossly abused.
 
Active X would only be a Microsoft IE solution not that I want to encourage such rude behavior. Also, keep in mind such rude behavior could get you flagged by security solutions as well.
 
Active X would only be a Microsoft IE solution not that I want to encourage such rude behavior. Also, keep in mind such rude behavior could get you flagged by security solutions as well.


something tells me the OP probably isn't too concerned about being flagged as a security risk.

strictly in reference to active x only working with IE though, you could always look at it as 60% success is better than 0% success.
 
Back
Top