| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2007
Posts: 244
![]() | need help with minor javascript coding for meebo meebo instruction are very vague there example to create action button which is basically without the pop up menu ????: NamePros.com http://www.namepros.com/programming/675439-need-help-minor-javascript-coding-meebo.html Meebo('addButton', { id: "button1", type: "action", icon: "/images/icon.png", label: "Hello World", onClick: function(){ alert("Hello World."); } }); i just want to know how can i change the onclick: so instead of using an alert i want have an url that opens up a new window? this is the url i want to use SURFLINE.COM | Global Surf Reports and Forecasts, Live Surf Cams and Coastal Weather thanks everyone |
| | |
| | #2 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 360
![]() ![]() ![]() ![]() | This should work, not sure how it will work with popup blockers etc most likely not open. Code: Meebo('addButton', {
id: "button1",
type: "action",
icon: "/images/icon.png",
label: "Hello World",
onClick: function(){
window.open('http://www.surfline.com/home/index.cfm','SURFLINE.COM | Global Surf Reports and Forecasts, Live Surf Cams and Coastal Weather');
}
});
__________________ Canadian Domain Registrar Ready.ca |
| | |