douhuan1979 2015-02-19 13:04 采纳率: 100%
浏览 12

是否可以规范化我的网站的网络链接拖动行为?

I realize that the drag and drop behavior of web links is strongly dependent on the browser (I never used this before). For instance, consider the wikipedia link for beer from a google search of beer. If I use the Firefox and if I drag and drop the link in a text file, the entire content is copied to the text. Otherwise, if I use the chromium, it is only copied the link. I am using Ubuntu and I have no way to test (now) if the behavior in windows or mac is different.

From Chromium:

https://www.google.com.br/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CB0QFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBeer&ei=Y97lVMH0C4HtgwS7koDwDA&usg=AFQjCNG9piVxLRqRNpjEJd09l8CQ0F-04w&bvm=bv.85970519,d.eXY

From Firefox:

<script>window.googleJavaScriptRedirect=1</script><script>var m={navigateTo:function(b,a,d){if(b!=a&&b.google){if(b.google.r){b.google.r=0;b.location.href=d;a.location.replace("about:blank");}}else{a.location.replace(d);}}};m.navigateTo(window.parent,window,"http://en.wikipedia.org/wiki/Beer");
</script><noscript><META http-equiv="refresh" content="0;URL='http://en.wikipedia.org/wiki/Beer'"></noscript>

Is it possible to normalize the behavior of this in my website using php or some solution using javascript or jquery? I would like that all browses behavior similar to chromium copying only the link!

Does it work for devices like iPad?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看