这是我在帐户中关联的退出脚本。但它只登出我的网站登录详细信息未登出打开的帐户。你能找到我的问题吗?
<button onclick="javascript:onLoad();">Logout In LinkedIn</button>
脚本:
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: mykey
authorize: true
onLoad: onLoad
</script>
<script type="text/javascript">
function onLoad() {
try {
IN.User.logout();
} catch (err) {
console.log(err);
}
setTimeout("goToHome()", 100);
}
function goToHome() {
document.location.href = "https://www.linkedin.com/secure/login?session_full_logout=&trk=hb_signout";
location.href="logout";
}
</script>