Closed kishanr closed 13 years ago
you can safely put javascript in the URL, just make sure to use double quotes (because the link's href attribute gets enclosed in single quotes).
e.g.:
var word_list = [ {text: "Lorem", weight: 13, url: 'javascript:alert("hey!")'}, // other words... ]
How can I put a javascript in the url? Sth like: url: "javascript:openFunction('test')"