<HTML>
<HEAD>
<SCRIPT language="Jscript">
// This function will create an error, because "someObject" does not exits
function MakeError()
{
someObject.DoSomething();
}
// The first pop-up will succeed, the second will not
function Popup()
{
var winRef = window.open("about:blank");
// Check whether the window was blocked
if (winRef != null)
{
winRef.document.write("Hello world! - This is a pop-up blocker test.");
winRef.document.close();
}
else
{
alert('The pop-up Was Blocked');
}
}
function fn_Load()
{
// First try the pop-up blocker
Popup();
// Next try something that causes an error
CreateAErrorWhenLoadingThisDocument();
}
</Script>
<style>
BODY {font-family: verdana; font-size: 12;}
H1 {color: red; font-size: 16;}
H2 {color: blue; font-size: 14;}
</style>
</Head>
<Body onload="fn_Load();">
<H1>These are a few simple tests to test the functionality of the browser</h1>
<p>If you allready see a pop-up, this can be because of the fact that you
have the pop-up blocker disabled, or are running on Windows 2000 or lower.</p>
<h2>Script error testing</h2>
<ul>
<li>When you load this document, you should also encounter a script error. This is on purpose.</li>
<li>Hit F5 to see if the script errors are still caught after a refresh</li>
<li>Click "Create an error" to test script error functionality</li>
</ul>
<!-- The error button -->
<Input type=button onclick="MakeError()" value="Create an error">
<h2>Closing windows</h2>
<!-- Try to close the window -->
<p>With this button you can try to close the current window.</p>
<Input type=button onclick="window.close()" value="Close window">
<h2>Pop-up blocker</h2>
<!-- Try to create a pop-up without the user's concent -->
<ul>
<li>A pop-up can be displayed when the document is loaded. If not, an alert window will notify you. This is the kind of pop-ups you want to avoid.</li>
<li>A pop-up window can be because of an user action. This can be done using the button below.</li>
<li>When you click on the button, and you get the message that the pop-up is blocked, see if you have the filter level set to high. When this is the case, use the Ctrl Key to override the pop-up blocker</li>
</ul>
<Input type=button onclick="Popup()" value="Try a pop-up" />
</Body>
</HTML>
没有合适的资源?快使用搜索试试~ 我知道了~
.net做的浏览器能保持session
共44个文件
cs:30个
resx:7个
settings:1个
需积分: 9 17 下载量 198 浏览量
2008-11-25
14:45:12
上传
评论
收藏 116KB ZIP 举报
温馨提示
.net做的浏览器能保持session 支持弹新窗口
资源详情
资源评论
资源推荐
收起资源包目录
ExtendedWebBrowser2_Src.zip (44个子文件)
ExtendedWebBrowser2
CommandStateEventArgs.cs 830B
SettingsHelper.cs 2KB
BrowserControl.resx 13KB
ScriptErrorWindow.Designer.cs 4KB
BrowserCommands.cs 485B
bin
Release
ScriptErrorWindow.resx 47KB
OptionsForm.Designer.cs 7KB
AboutForm.Designer.cs 5KB
Properties
Resources.Designer.cs 3KB
Settings.settings 598B
Resources.resx 6KB
Settings.Designer.cs 2KB
AssemblyInfo.cs 2KB
Program.cs 437B
ScriptErrorManager.cs 1KB
BrowserControl.Designer.cs 3KB
NotifyCollection.cs 989B
OpenUrlForm.cs 2KB
ScriptError.cs 624B
BrowserExtendedNavigatingEventArgs.cs 2KB
OptionsForm.cs 2KB
AboutForm.resx 56KB
BrowserControl.cs 6KB
MainForm.resx 86KB
AboutForm.cs 767B
ExtendedWebBrowser2.csproj.user 168B
OpenUrlForm.Designer.cs 4KB
ExtendedWebBrowser2.snk 596B
MainForm.cs 7KB
PopupBlockerFilterLevel.cs 655B
UrlContext.cs 2KB
OptionsForm.resx 22KB
UnsafeNativeMethods.cs 11KB
ExtendedWebBrowser.cs 17KB
ExtendedWebBrowser2.csproj 6KB
app.config 970B
OpenUrlForm.resx 50KB
MainForm.Designer.cs 18KB
NativeMethods.cs 2KB
WindowManager.cs 10KB
TextChangedEventArgs.cs 330B
Test.htm 2KB
ScriptErrorWindow.cs 1KB
ExtendedWebBrowser2.sln 946B
共 44 条
- 1
kingson8811
- 粉丝: 14
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0