I would like to create a link to http://localhost:3000
so that when clicked,
Firefox will be opened on that page. Ho开发者_运维技巧w should I do this ?
You create this link as with any other:
<a href="http://localhost:3000/" title="link to localhost, port 3000">Link to localhost</a>
Of course this links to the localhost
of whoever accesses the page; so the result of my clicking the link is a very different location/event than if you click the link (assuming we're not using the same computer, obviously).
If we're talking about a desktop shortcut (and I'm assuming Windows XP, here):
- Right click your desktop and go to New -> Shortcut.
- In the program location, enter the location of Firefox (something like C:\Program Files\Mozilla Firefox\firefox.exe)
- Once the shortcut is on your desktop, right click it and go to properties.
- In the "Target:" field, append links with spaces between each:
Link to quoted answer.
精彩评论