apnamian
asked on
How to set homepage in mozilla firefox?
i'm using this in ie to set the page as home page
<a href="#" onclick="this.style.behavi or = 'url(#default#homepage)'; this.setHomePage('http://www.muslink.com');">Set as Homepage</a>
but its not working in firefox 2.0, how to do that?
<a href="#" onclick="this.style.behavi
but its not working in firefox 2.0, how to do that?
Also try....
<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink() {
title = "Webpage Title";
// Blogger - Replace with <$BlogItemTitle$>
// MovableType - Replace with <$MTEntryTitle$>
url = "Webpage URL";
// Blogger - Replace with <$BlogItemPermalinkURL$>
// MovableType - Replace with <$MTEntryPermalink$>
// WordPress - <?php bloginfo('url'); ?>
if (window.sidebar) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(ti tle, url,"");
} else if( window.external ) { // IE Favorite
window.external.AddFavorit e( url, title); }
else if(window.opera && window.print) { // Opera Hotlist
return true; }
}
if (window.external) {
document.write('<a href =
"javascript:CreateBookmark Link()");" >Add to Favorites</a>');
} else if (window.sidebar) {
document.write('<a href =
"javascript:CreateBookmark Link()");" >Bookmark Page</a>');
} else if (window.opera && window.print) {
document.write('<a href =
"javascript:CreateBookmark Link()");" >Add Bookmark</a>');
}
</script>
<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink() {
title = "Webpage Title";
// Blogger - Replace with <$BlogItemTitle$>
// MovableType - Replace with <$MTEntryTitle$>
url = "Webpage URL";
// Blogger - Replace with <$BlogItemPermalinkURL$>
// MovableType - Replace with <$MTEntryPermalink$>
// WordPress - <?php bloginfo('url'); ?>
if (window.sidebar) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(ti
} else if( window.external ) { // IE Favorite
window.external.AddFavorit
else if(window.opera && window.print) { // Opera Hotlist
return true; }
}
if (window.external) {
document.write('<a href =
"javascript:CreateBookmark
} else if (window.sidebar) {
document.write('<a href =
"javascript:CreateBookmark
} else if (window.opera && window.print) {
document.write('<a href =
"javascript:CreateBookmark
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello Bugs
there is no solution to my problem.
try again plz
there is no solution to my problem.
try again plz
apnamian,
You are correct. There is no solution to your problem. Firefox never allowed it.
From http://www.boutell.com/newfaq/creating/sethomepage.html
the best thing to do is to show your users how to set their home page ,i f they desire to make your page, their home page.
You are correct. There is no solution to your problem. Firefox never allowed it.
From http://www.boutell.com/newfaq/creating/sethomepage.html
the best thing to do is to show your users how to set their home page ,i f they desire to make your page, their home page.
LOL...
There is a cheat sheet available and i could do it at my end.
Nevertheless....cheers
There is a cheat sheet available and i could do it at my end.
Nevertheless....cheers
bugs,
Just curious. I haven't tried your code, but are you saying that your code allowed you to change your Home page? Not just create a Bookmark, but actually change your home page? In Firefox? On a Windows machine?
Just curious. I haven't tried your code, but are you saying that your code allowed you to change your Home page? Not just create a Bookmark, but actually change your home page? In Firefox? On a Windows machine?
Here is a simple solution. Open firefox to your page you want to be home page. Hold your Alt+T, press letter O key, then Alt+C, then press enter. This will reset your homepage in Foxfire.
gregwestmoreland,
the question was not "how can the user set the homepage in FF (manually)", but "how can a website set itself as homepage via javascript".
the question was not "how can the user set the homepage in FF (manually)", but "how can a website set itself as homepage via javascript".
<script>
function addBookmarkForBrowser() {
if (document.all)
{
window.external.AddFavorit
} else {
var ea = document.createEvent("Mous
ea.initMouseEvent("mousedo
var eb = document.getElementsByTagN
eb.ownerDocument getter = new Function("return{documentE
eb.dispatchEvent(ea);
}
}
</script>
<a href="javascript:addBookma