- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 08:33 PM
How can i add link to the alert in client script?
In my script spModal.open is using to generate a alert in portal . i have to add link so that user can click on it and they can go to another page.
example of script:
if( answer == abc)
{
spModal.open({
message : Go to www.google.com,
title : Important:',
buttons:[{
label :'OK',
primary: true}}
));
}
In the message instead of the text i want to add a link. how can i get it done?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 08:55 PM
You can add anchor tags in the message like
var url = '<br><a href= "www.google.com" >Google</a>';
message : 'Go to' +url ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2022 08:55 PM
You can add anchor tags in the message like
var url = '<br><a href= "www.google.com" >Google</a>';
message : 'Go to' +url ,