Please help me to display an Http:// url in the alert in client script

ramya0905
Kilo Expert

Please help me to display an Http:// url in the alert in client script

1 ACCEPTED SOLUTION

this will display as link... i tried this on demo just now...



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


View solution in original post

17 REPLIES 17

Kalaiarasan Pus
Giga Sage

tried?



alert(location.href);


Thnks for ur responce..


I tired with this..but the link doesnt display like an url..its displayed like an ordinary text..pls help on this..


this will display as link... i tried this on demo just now...



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


yes this works. but am looking for displaying as an alert..


something like this...



function onChange(control, oldValue, newValue, isLoading, isTemplate) {


    if (isLoading || newValue == '') {


          return;


    }


  var url="https://snc.flextronics.com/snc_sso.asp?uri=kb_view.do?sysparm_article=KB13692";


  alert(url);


}



it would be fine if this url on the alert is displayed as a link..