【问题标题】:How to raise the javascript function (that is presented in master page) from iframe如何从 iframe 提升 javascript 函数(在母版页中显示)
【发布时间】:2012-04-03 03:52:34
【问题描述】:

我如何提高 javascript 函数(在母版页中显示) 来自 iframe 在 iframe 中,我显示了一个 aspx 页面 我想从 iframe 页面后面的代码调用

ScriptManager.RegisterClientScriptBlock(Me.Page, GetType(String), "Alert", "Show_NotifyDiv();", True)

【问题讨论】:

    标签: jquery asp.net


    【解决方案1】:

    以下是使用 javascript 的示例。

    iframe 的母版页/页面:

    function fnMaster(para1){
       alert(para1);
    )
    

    iframe 内的页面:

    function callMasterFunction(){
       parent.fnMaster("Hello master");
    }
    

    【讨论】:

      猜你喜欢
      • 2011-11-19
      • 2010-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多