使用url链接访问元素 [英] access the element with url link

查看:80
本文介绍了使用url链接访问元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用网址访问网页。例如:http://www.google.com


来自iframe src的
i loaded tat链接动态。



在此页面右上角..有登录按钮。只是我想禁用tat或想要禁用webforms_postbackoption。



假设点击了按钮。然后页面无法重定向到另一个链接..



请给我解决方案

I am accessing the webpage by using url. for eg: http://www.google.com

i loaded tat link from Iframe src dynamically.

In this page right cornet top.. having "sign in" button. just i want to disable tat or want to disable webforms_postbackoption.

suppose the button was clicked. then page cannot redirect to another link..

pls tel me the solution

推荐答案

你可以隐藏该按钮使用jquery甚至javascript。


在iframe的onload事件中
你可以设置一个隐形按钮或不显示



you can hide that button using jquery or even javascript.

at onload event of iframe you can set a button invisible or display none

<script type="text/javascript">
 function displayResult() { document.getElementById("targettedbutton").style.display="none"; }


<frame src="www.something.com" onload="javascript:displayResult()"></frame></script>







已完成




thats done


这篇关于使用url链接访问元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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