如何从一个HTML文件中打开多个标签页 [英] How to open multiple tabs from one HTML file

查看:1066
本文介绍了如何从一个HTML文件中打开多个标签页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在多台计算机,工作,这意味着它们将使用默认浏览器设置(有改变浏览器设置没有意义的,因为我每次都这样做)。我需要一个HTML文件,该文件将打开所需的页面的特定列表(认为这是打开我的所有书签)。比如我访问的Facebook,雅虎和计算器。我想点击HTML文件,它会打开同一窗口上这3个网站(不同的选项卡)。

I work on many computers, which means they use default browser settings (There is no point in changing browser settings, because I will have to do it every time). I need to make an HTML file which will open a specific list of desired pages (think of this as opening all my bookmarks). For example I visit facebook, yahoo, and stackoverflow. I want to click that HTML file, and it will open these 3 sites on the same window (different tabs).

也将功能,例如自动登录上所有的网站很容易实施?

Also would functionality like automatic login on all the sites be easy for implementation?

注意:专注于一个便携式的解决方案。假设你只有默认浏览器设置。没有设立服务器,改变浏览器设置之类的东西。假设你有200台电脑,你可以坐在其中任何一个。你只有一个闪存驱动器上的一些文件。我想点击一个HTML文件,或者一些脚本或什么的,使这些页面在浏览器中打开时,不会触发弹出式窗口拦截。

Attention: Focus on a "portable" solution. Assume that you only have default browser settings. No setting up servers, changing browser settings and things like that. Imagine that you have 200 computers and you can sit on any one of them. You have only a flash-drive with some files on it. I want to click an HTML file, or some script or whatever, so that these pages open in my browser, without triggering the popup blocker.

推荐答案

如何使用批处理文件?我刚和Chrome尝试它在Windows 7中,并在同一个窗口中打开所有的3个网址。

How about using a batch file? I just tried it in Windows 7 with Chrome and it opened all 3 URLs in the same window.

请用记事本名为文件name.bat 一个纯文本文件。然后添加此code:

Make a plain text file with Notepad called file-name.bat. Then add this code:

start chrome.exe http://www.google.com
start chrome.exe http://www.yahoo.com
start chrome.exe http://www.microsoft.com

所有你应该做的是双击它运行它。您可能会得到一个安全警告(我没有)。

All you should have to do is double click it to run it. You may get a security warning (I didn't).

您可以检查了这一点太:批处理文件打开网址列表

You could check this out too: Batch file for opening one of a list of URLs

这篇关于如何从一个HTML文件中打开多个标签页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆