SmartFAQ is developed by The SmartFactory (https://www.smartfactory.ca), a division of InBox Solutions (https://www.inboxsolutions.net)

Ho do I make 'Add to favorites' or 'bookmark' and 'Make this your home page' script?
Create a custom block and insert the following code:
<a href="javascript:window.external.AddFavorite(location.href, document.title);">
Add this Page to your Favorites</a>
<
br><br>
<
A HREF="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('https://xoops.org');"
>
Make Xoops Your Homepage
</A>
The above code will add the current page as a favorite. You can of course delete the second part if you dont want a 'make this your home page' option. The code I mentioned above works on any page and requires very little customization. The code will automatically determine the title of your page and the correct URL with no input required from you using the following parameters. * location.href This parameter gets the full URL of the current page. * document.title This parameter takes note of the current page's title that will be used as your Favorites title. There are, however, times when you do not want to have the current page's title and location added to your favorites. You may want to specify a specific page title and URL instead, such as your home page. For such situations, use the following code instead:
<a href="javascript:window.external.AddFavorite('http://www.mysite.com', MySite.com');">
The above code is very similar to the code posted earlier. The only difference is that the location.href and document.title parameters have been replaced with actual values that are independent of the page you are currently in. IMPORTANT Dont forget to write java script as javascript all one word in your code.


The comments are owned by the author. We aren't responsible for their content.
user

 Netscape bookmark?


How do you create it so that netscape users can bookmark or make your site their homepage?

 
user

 IE


didn't work for me in XOOPS 2.0.14, correct line:

<a href="javascript:window.external.AddFavorite(location.href, document.title);">
Add this Page to your Favorites</a>

update ... hmm autocorrect text?
Thus replacing (tammairanslip) with " j a v a s c r i p t:" without the spaces

 
user

 Error


I get am error. 403, access forbidden

Any ideas?

 


Login

Who's Online

179 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

If you are trying to edit the theme.html in your themes folder and nothing seems to be changed, be sure that you set "Update module template .html files from themes/your theme/templates directory?" to "YES" in General Settings!!

Random question

How to CHMOD to 0444 ?