how can redirect to external URL from script while creating button

manojlakshmanas
Kilo Expert

i need user to redirect to external page while clicking button.

1 ACCEPTED SOLUTION

manojlakshmanas
Kilo Expert

Hi


while pointing user to external URL page from UI Action client script this will be helpful to redirect.



        location.href = ("external page URL");


View solution in original post

21 REPLIES 21

What exactly did you put in your UI Action Script to get this work, can you provide final script.



Thanks,


Angelia


Hi Angelia,


                pointing to extrernal URL can be performed using many ways i have used these script to move to another external page once the use click this button.


this will open new page but frame conflicts will come.


location.href = ("external page URL");




better use this method u will get to open the URL in the new tab .


var r = getTopWindow();


    r.popupOpenFocus(URL, 'related_list',   950, 700, '', false, false);




script i have used is



function popupDisp() {


  var userName = g_user.userName;


    var URL1 = g_scratchpad.url; // to get to URL from property


  var URL =(URL1+'userName='+userName);


  //open window


  var r = getTopWindow();


    r.popupOpenFocus(URL, 'related_list',   950, 700, '', false, false);



}