Home > Web Front-end > JS Tutorial > Copy the js code of the title and address of this post_javascript skills

Copy the js code of the title and address of this post_javascript skills

WBOY
Release: 2016-05-16 19:03:13
Original
700 people have browsed it
    
<script> <BR>function copyurl() <BR>{ <BR> var clipBoardContent="复制本贴标题和地址,发给QQ|Msn上的好友的代码 \r\n"; <BR> strHref = window.location.href; <BR> strUrl = strHref.split("?"); <BR> clipBoardContent += strUrl[0]; <BR> if (window.clipboardData){ <BR> if(window.clipboardData.setData("Text",clipBoardContent)){ <BR> document.getElementById('copyshow').innerHTML = ' 复制成功,请粘贴到QQ\\MSN\\电邮发送给好友'; <BR> } <BR> } <BR> else{ <BR> document.getElementById('copyshow').innerHTML = ' 您使用的浏览器不支持此功能,请到地址栏复制链接'; <BR> } <br><br>} <BR></script> 
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template