Display URL link in the alert onChange

ramya0905
Kilo Expert

Please help me to create an alert with the url in it..

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

same question twice ?



Alert


alert(location.href);



InfoMessage on form :


g_form.addInfoMessage(location.href);




check this for more methods to display message




GlideForm (g form) - ServiceNow Wiki


View solution in original post

4 REPLIES 4

Kalaiarasan Pus
Giga Sage

same question twice ?



Alert


alert(location.href);



InfoMessage on form :


g_form.addInfoMessage(location.href);




check this for more methods to display message




GlideForm (g form) - ServiceNow Wiki


this to display current URL as link



g_form.addInfoMessage("<a href='"+location.href+"'>"+location.href+"</a>");


if the issue is resolved, mark appropriate response as answered so that others can take notice of it if they have the same question


Nitin_NOW
Tera Guru

Hello Ramya



Just checking, if you were able to fix the issue? If so, can you please put a screenshot of your alert box



Regards!