NameSilo

Need help with minor Javascript coding for Meebo

SpaceshipSpaceship
Watch

hangman21

Established Member
Impact
1
meebo instruction are very vague there example to create action button which is basically without the pop up menu


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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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');
}
});

source Opening a New Window With JavaScript
 
0
•••
thanks alot baxter, it worked perfectly
 
0
•••
np Hangman :D
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back