Pedro Luz
Pedro Luz

Reputation: 2772

How can i add a link to notyjs text message

I've been trying to put a link in a message that im sending using notyjs (http://needim.github.io/noty/). I don't want to use a noty button, just a link.

var n = noty({text: 'Hi there click, <a href="http://somehere.com">here</a> to continue'});

The problem is that the message shows with the link, but when i click. it does nothing.

any ideas? thanks

Upvotes: 1

Views: 85

Answers (1)

Saravanan
Saravanan

Reputation: 1889

By default noty closes on clicking anywhere in the container. To prevent this you should change the closeWith parameter. The modified code is as below.

var n = noty({text: 'Hi there click, <a href="http://somehere.com">here</a> to continue',closeWith:['button']});

JS Fiddle : http://jsfiddle.net/nGDvU/

Upvotes: 1

Related Questions