Skip to Content

how to access the webpage in browser when click the button in SAPUI5.

Hi Experts,

I' working in sapui5 mobile application there one option while i click the image it moves to website in the browser but the application has to run in the background. i tried some of the codes but its not work properly. please suggest some idea. I share my code.



var btn3=new sap.m.Button("btn3", {width:"100%", icon:"sap-icon://contacts", type:"Emphasized",Align:"Center",text:"Contact us",press:oController.next1});


next1:function(){ window.location.replace(""); },
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 17, 2015 at 06:16 AM

    use this code "","_blank");

    Refer this example JS Bin - Collaborative JavaScript Debugging

    Kindly let me know if you need any more information

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 17, 2015 at 06:34 AM

    Hi Vinoth,

    Use sap.m.URLHepler.redirect: SAPUI5 Explored

    sap.m.URLHelper.redirect("", true);          //true for new tab, set it to false if you don't want in new tab


    Sai Vellanki.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.