MacOSX. Put an icon in the Dock that opens a webpage

I have a Mac OSX 10.4.1.

I want to put an icon in the dock, so that when I click it, it opens a webpage, for instnace "".

To do so, I have tried the following:
I open Firefox,  I visit, and I drag the icon at the left of the url to the desktop.
(I cannot drag it to the Dock)
Then, I drag the new file from the desktop to the dock.
This works: if I click that icon from the dock, it opens

However, if I remove the file from the Desktop, then it stops working.

How can I have an icon in the dock, so that when I click it, it opens
(without having external files)

Many thanks,
Who is Participating?
GarbsTheTurtleConnect With a Mentor Commented:
All items in the dock are simply links to other items. You can put your original file in an out of the way place, like ~/Library/Scripts or you could make a new folder 'Docks' in ~/Library.

Put the file in the out-of-the-way place, then drag it to the dock from there. You won't have it on your desktop, and it's accessible from your dock when you need it.

Not exactly what you're looking for, but it's the closest thing that's possible.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.