如何访问其他站点的特定控制值 [英] How to access the particular control value of other site

查看:61
本文介绍了如何访问其他站点的特定控制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我想在打开的站点中获得特定控件的价值,
我可以通过使用javascript或其他任何方法来实现此目标吗?

我尝试使用以下代码,但显示的访问权限被拒绝

Hi

I want to get the value of particular control in the opend site,
hw can i achieve this, by using javascript or any thing

i tried with the following code but its showing acces denied

var dhlWin = window.open("http://www.sitename.com", "dhltrack", "height=660  width=755");
            //dhlWin.opener = win0;
            var a = dhlWin.document.getElementById("lblSessionMessage").value;




提前发送




tx in advance

推荐答案

尝试一下,

Try this,

var dhlWin = window.open("http://www.sitename.com", "dhltrack", "height=660  width=755");
            //dhlWin.opener = win0;
            var a = dhlWin.document.getElementById("<%= lblSessionMessage" %>;).value;




我假设lblSessionMessage是服务器控件:)




I am assuming the lblSessionMessage is server control :)


这篇关于如何访问其他站点的特定控制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆