cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a url on the same tab using Personas Scripting

Former Member
0 Kudos

Hi All,

Can someone please help me on scripting to call a URl on the same tab in Browsers(IE, Chrome,Mozilla).

For your reference i have created one script button and added below code to the script. it is working in Internet explorer but the same is not working in Chrome.

Script Code:

window.open('http://www.google.com','_self');

Thanks

Ramesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sushant,

session.utils.operURL statement opens the url in new tab. But my requirement is i want to open the url on the same tab.

Below code is working fine in Internet explorer, but the same is not working in Google Chrome.

window.open('http://scn.sap.com/welcome','_self');

And also when i am clicking the script button it is calling the URL on the same tab but the URL is not changing in Internet explorer. it retains the old one.

Regards,

Ramesh

0 Kudos

session.utils.openUrl('www.google.com');