作者:专注自由近_515 | 来源:互联网 | 2023-08-26 18:03
Ihaveamainpage(actuallyaJSP)withaniframeinsideitas;我有一个主页(实际上是一个JSP),里面有一个iframe;<
I have a main page (actually a JSP) with an iframe inside it as;
我有一个主页(实际上是一个JSP),里面有一个iframe;
Now there are multiple links on the main page (rendered dynamically via JSP) which can try to set the src to some URL...
现在主页上有多个链接(通过JSP动态呈现),可以尝试将src设置为某个URL……
Now my question is,using jQuery (may be live()), can I override that in such a way that the "src" attribute for abc_frame would always have some particular value (e.g. "somefixedURL")
现在,我的问题是,使用jQuery (may be live()),我是否可以重写它,使abc_frame的“src”属性始终具有某些特定的值(例如)。“somefixedURL”)
I cannot capture the link clicking, as it is completely dynamically created via some Java code and hence I am trying to override the iframe src ?
我无法捕获单击的链接,因为它是通过一些Java代码完全动态创建的,因此我试图覆盖iframe src ?
8 个解决方案