Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

amitsolanki24_'s avatar

How can I bookmark webpage using javascript?

Can I bookmark a webpage by clicking the button using javascript ?

0 likes
3 replies
gych's avatar

As far as I know its not possible to do this by script today. In the past this was possible, but people abused it too much therefore browsers removed this functionality.

The best you can do is to add instruction for the user to add your website as bookmark on button click.

For example: Press CTRL + D to add website as bookmark

1 like

Please or to participate in this conversation.