Dale Weber
Dale Weber

Reputation: 13

Share Dialog code not working in IE correctly

This code from FB is working great on Chrome, FF, Safari, but on IE it redirects the page to FB instead of opening the new window. Does anyone know why this might be?

<a href="http://www.facebook.com/pages/Bow-Wow-Barrier/183857675040526" 
  onclick="
    window.open(
      'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 
      'facebook-share-dialog', 
      'width=626,height=436'); 
    return false;">
    <img border="0"; img src="http://www.bowwowbarrier.com/images/sharebutton.gif">
</a>

Upvotes: 1

Views: 831

Answers (2)

user794573
user794573

Reputation:

You must be login to use this. Otherwise, you won't get sharing box window rather it will show fb login box.

Upvotes: 1

Shumail
Shumail

Reputation: 3143

No mistake in Code. You must be login in browser to use this otherwise it should show fb login page.

here's the screenshot of working example.

enter image description here

Upvotes: 0

Related Questions