Can I attached a FB opener to a button, such as this?
<INPUT TYPE="button" VALUE="open page">
No other form elements are involved. Thanks!
form button element to open a page in FB?
Page: 1
Author | Post |
---|---|
#1 Tue Apr 14, 2009 8:40 pm
|
|
Member
Registered: Apr 2009
Posts: 81
|
|
#2 Wed Apr 15, 2009 1:05 am
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
I like using button elements instead of input elements for this, but this same onclick action should work fine on an input element too.
<button type="button" onclick="fb.start( { href:'somePage.html' } );">open page</button> If you want to set some options with that, use: <button type="button" onclick="fb.start( { href:'somePage.html', rev:'option1:value1 option2:value2' } );">open page</button> That's the v3.50 way. If you need something for an earlier version, let me know. |
Page: 1