静态html页面传值
例如从1.html跳转到2.html:
在1.html中:
<form name="loginForm" action="2.htm?pageid=1&str='s'" method="post">
当页面提交跳转到2.html中:
<script type="text/javascript">
<!--
var str = location.search;
//-->
</script>
通过location对象的search属性得到的字符串为:?pageid=1&str='s'
在2.html中通过indexOf就可以搜索到你需要使用的值
相关文档:
从网上的SThtmlDialog例子改过来的,在MFC程序中显示HTML网页的方法
1、在视图类中添加头文件#include <Htmlctrl.h>
2、在视图头文件中添加变量
HWND m_hwndHtml;//HTML控件窗口句柄
HINSTANCE m_HtmlViewInstance;//动态链接库装载句柄
并赋予初始值m_HtmlViewInstance = 0;
3、创建网页控件, ......
下面是一个过滤html元素的程序,也许对大家有点帮助!
/**
* filter all html element.
* For example:<a href="www.sohu.com/test">hello!</a>
* The filter result is :hello!
  ......
<%
int a =1;
out.println("<input type='checkbox' value='"+a+"'>");
%>
<%int b =1 ;%>
<i ......
html 网页描述语言
html的基本框架
<head> //标签头
<javacript> &nb ......