Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/461.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript iphone上的Facebook共享问题_Javascript_Iphone_Facebook - Fatal编程技术网

Javascript iphone上的Facebook共享问题

Javascript iphone上的Facebook共享问题,javascript,iphone,facebook,Javascript,Iphone,Facebook,我将此代码用于facebook共享和iphone,但它正在打开一个新窗口(window.open)我想打开一个新的div我该怎么做?我想要像($(“#DIV”)。打开(http://www.facebook.com/sharer.php?u=,…)) 函数fbs_click(){ u=location.href; t=文件标题; 打开窗户http://www.facebook.com/sharer.php?u=“+encodeURIComponent(u)+”&t=“+encodeURICom

我将此代码用于facebook共享和iphone,但它正在打开一个新窗口(window.open)我想打开一个新的div我该怎么做?我想要像(
$(“#DIV”)。打开(http://www.facebook.com/sharer.php?u=,…)


函数fbs_click(){
u=location.href;
t=文件标题;
打开窗户http://www.facebook.com/sharer.php?u=“+encodeURIComponent(u)+”&t=“+encodeURIComponent(t),“共享器”,“工具栏=0,状态=0,宽度=626,高度=436”);
返回false;
}
<script>
function fbs_click() {
u=location.href;
t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}
</script>
<a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank"><img src="ADD_IMAGE_URL_HERE" alt="Share on Facebook" /></a>