<TR bgColor=#ffffff width=%>
<TD align=middle colSpan=>
<form id=form>
<INPUT language=JavaScript class=button id=Btton onclick=if (typeof(Page_ClientValidate) == function) Page_ClientValidate(); type=submit value=Start onclick=alert(dd) name=Btton></TD></TR>
</form>
<input type=button onclick=alert(test) id=button>
formcs
using System;
using SystemDrawing;
using SystemCollections;
using SystemComponentModel;
using SystemWindowsForms;
using SystemData;
using mshtml;
namespace WindowSAPplication
{
/// <summary>
/// Form 的摘要说明
/// </summary>
public class Form : SystemWindowsFormsForm
{
private AxSHDocVwAxWebBrowser axWebBrowser;
private SystemWindowsFormsButton button;
private SystemWindowsFormsButton button;
/// <summary>
/// 必需的设计器变量
/// </summary>
private SystemComponentModelContainer components = null;
public Form()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
componentsDispose();
}
}
baseDispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 不要使用代码编辑器修改
/// 此方法的内容
/// </summary>
private void InitializeComponent()
{
SystemResourcesResourceManager resources = new SystemResourcesResourceManager(typeof(Form));
thisaxWebBrowser = new AxSHDocVwAxWebBrowser();
thisbutton = new SystemWindowsFormsButton();
thisbutton = new SystemWindowsFormsButton();
((SystemComponentModelISupportInitialize)(thisaxWebBrowser))BeginInit();
thisSuspendLayout();
//
// axWebBrowser
//
thisaxWebBrowserEnabled = true;
thisaxWebBrowserLocation = new SystemDrawingPoint( );
thisaxWebBrowserOcxState = ((SystemWindowsFormsAxHostState)(resourcesGetObject(axWebBrowserOcxState)));
thisaxWebBrowserSize = new SystemDrawingSize( );
thisaxWebBrowserTabIndex = ;
//
// button
//
thisbuttonLocation = new SystemDrawingPoint( );
thisbuttonName = button;
thisbuttonSize = new SystemDrawingSize( );
thisbuttonTabIndex = ;
thisbuttonText = button;
thisbuttonClick += new SystemEventHandler(thisbutton_Click);
//
// button
//
thisbuttonLocation = new SystemDrawingPoint( );
thisbuttonName = button;
thisbuttonTabIndex = ;
thisbuttonText = button;
thisbuttonClick += new SystemEventHandler(thisbutton_Click);
//
// Form
//
thisAutoScaleBaseSize = new SystemDrawingSize( );
thisClientSize = new SystemDrawingSize( );
thisControlsAdd(thisbutton);
thisControlsAdd(thisbutton);
thisControlsAdd(thisaxWebBrowser);
thisName = Form;
thisText = Form;
((SystemComponentModelISupportInitialize)(thisaxWebBrowser))EndInit();
thisResumeLayout(false);
}
#endregion
/// <summary>
/// 应用程序的主入口点
/// </summary>
[STAThread]
static void Main()
{
ApplicationRun(new Form());
}
private void button_Click(object sender SystemEventArgs e)
{
object x = SystemReflectionMissingValue;
axWebBrowserNavigate(@E:\Documents and Settings\Administrator\桌面\ ref x ref x ref x ref x);
}
private void button_Click(object sender SystemEventArgs e)
{
mshtmlIHTMLDocument doc = (mshtmlIHTMLDocument)axWebBrowserDocument;
mshtmlIHTMLFormElement f =(mshtmlIHTMLFormElement)em (form);
((mshtmlIHTMLFormElement)(f))submit();
mshtmlIHTMLElement Element = (mshtmlIHTMLElement)em(button );
Elementclick();
}
}
}