Need help making javascript link open in same iframe
I am trying to use the javascript below on my facebook page iframe...
The javascript displays a share button on my page.... when clicked... it should open the share dialogue in a new window (which it does correctly) Also when clicked I want it to load a new page into my iframe within facebook....(this does not work properly)
when I click, it opens the new page by itself in the same window...but it does not display it within facebook Like I want it to.
<script>function fbs_click() {u=location.href;t=document.title;window.open(' false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url( no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url( no-repeat top right; text-decoration:none; } </style> <a rel="nofollow" href=" class="fb_share_button" onClick="top.window.location=' target="_blank" style="text-decoration:none;">Share</a>
I am trying to use the javascript below on my facebook page iframe...
The javascript displays a share button on my page.... when clicked... it should open the share dialogue in a new window (which it does correctly) Also when clicked I want it to load a new page into my iframe within facebook....(this does not work properly)
when I click, it opens the new page by itself in the same window...but it does not display it within facebook Like I want it to.
<script>function fbs_click() {u=location.href;t=document.title;window.open(' false;}</script><style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url( no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url( no-repeat top right; text-decoration:none; } </style> <a rel="nofollow" href=" class="fb_share_button" onClick="top.window.location=' target="_blank" style="text-decoration:none;">Share</a>