简体   繁体   中英

How to create a link to web page?

I would like to create a link to http://localhost:3000 so that when clicked, Firefox will be opened on that page. How 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):

  1. Right click your desktop and go to New -> Shortcut.
  2. In the program location, enter the location of Firefox (something like C:\\Program Files\\Mozilla Firefox\\firefox.exe)
  3. Once the shortcut is on your desktop, right click it and go to properties.
  4. In the "Target:" field, append links with spaces between each:

Link to quoted answer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM