Internet Shortcuts – How to Create Cross-Platform Files

shortcuts

Is there any way to create Internet shortcut files that will work with all operating systems (including Mac, Windows, and Linux)? I often switch between Windows and Linux, and I haven't yet found a way to create an internet shortcut file (on the desktop or in a local folder) that is compatible with all operating systems.

Best Answer

I found a reasonable cross-platform solution. This HTML document could be used as a shortcut to stackoverflow.com, and it would immediately redirect to that site when opened from the desktop:

<html>
<body>
<script type="text/javascript">
    window.location.href = "http://stackoverflow.com"; //change this to the URL
                                                       //you want to redirect to
</script>
</body>
</html>