duane9322 2011-07-25 22:37
浏览 21

如何证明链接指向的页面中的单词(句子)

my name is Lore,

I need to put in evidence (yellow background or similar) a sentence in a webpage with javascript but I can't solve this.

I try to be more specific: I have to generate a link that points to a "random" url and puts in evidence some part of the text in the page. The page is not generated or known by me, anyway,(e.g. websites of news, catalogs ,written text in general that may be found by the browser with the CTRE+F sequence).

Do you think it is possible to do this via a simple link?

I tried to image how to do such a result. If I use frames and I load in the first frame a webpage that contains a specific javascript code and then visualize the external page from my wab page, the javascript will be applied to the external page too?

I mean something like this:

+- My webpage-----------------------------------+
|  (with javascript code  that puts in          |
|   evidence a list of words in the framed page |
|                                               |
<--- frame ------------------------------------->

+---external webpage (eg AOL.com, msn.com,...)--+
|                                               |
|                                               |
|   THE JUICE OF THE QUESTION:                  |
|   Is it possible to put in evidence words     |
|   in this page?                               |
|    I meed to arrive to this result with a     |
|   single click on a link that loads, this     |
|    framed page                                |
+---/external webpage---------------------------+

<-- /frame ------------------------------------->
|                                               |
+-- /My webpage---------------------------------+

Thankyou. Sorry for my english,

  • 写回答

2条回答 默认 最新

  • douqiang6036 2011-07-25 22:42
    关注

    No, sorry but you can't access the iframe with Javascript unless the page in the frame is on your own server, and you can't make a link that tells the browser to execute some script on the new page after the user's browser is redirected.

    What you want to do isn't possible at all using client side coding.

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测