<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
window.onload = function () {
var txt = document.getElementById("txtShowIframe");
txt.onmousedown = function () {
document.getElementById("div_showIfrmae").style.display = "block";
}
txt.onmouseover = function () {
document.getElementById("div_showIfrmae").style.display = "none";
}
//按钮点击事件
document.getElementById("btnShowValue").onclick = function () {
alert(document.getElementById("txtShowIframe").value);
}
f();
}
//此方法用来获取iframe中src嵌入页面的内容
function f() {
var doc;
//判断浏览器
if (document.all)
JS操作Iframe获取到Iframe中的内容+ListView+DataPager分页
最新推荐文章于 2023-03-31 10:18:49 发布