Code to make the viewed page, their home page

What code would you use, so that when someone clicks on a link/button, it makes that page the viewers home page please?

Hi, I’m sorry, I don’t think that can be done without malware. If I understand your question correctly.

Please explain, do you want to set the link url as the browser’s starting/home page without user interaction, or is it a “service” suggested to the user that the user is aware of?

In either case, AFAIK, it can’t be done without hijacking the browser, and I think it is not a topic for this HTML & CSS forum.

What you can do is to suggest to the user to choose the option in the browser settings to set the current url (or paste the link url) as their home page.

No hijacking involved - just one button for the viewer to click on to make the page their home page.

OK, asking the user to press a button that makes the current page their hom page. It is not possible to do by any html or css, it takes a javascript running on the client to make that happen.

I’ll ask the mods to move your topic to the JavaScript forum.

Thanks Erik. Are there better ways in js of coding it, or is there only the one way?

There is no universal way to do this, it has to be a different way for each type of web browser.
A good discussion on this with some solutions, can be found at How can I set default homepage in FF and Chrome via javascript?

Thanks Paul.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.