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 phython路径名过长报错 不知道什么问题
    • ¥15 深度学习中模型转换该怎么实现
    • ¥15 HLs设计手写数字识别程序编译通不过
    • ¥15 Stata外部命令安装问题求帮助!
    • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
    • ¥15 TYPCE母转母,插入认方向
    • ¥15 如何用python向钉钉机器人发送可以放大的图片?
    • ¥15 matlab(相关搜索:紧聚焦)
    • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
    • ¥15 Arduino无法同时连接多个hx711模块,如何解决?