Calling javascript function on page load in ionic app


I have created an application based on the a ready ionic templates. It works fine but then i changed the index.html where i placed following code to show a url on page load but then it’s not working.

        window.location = "";
<body class="platform-android platform-cordova platform-webview">

Can some please help as i have tried multiple things and got totally stuck on this.
Thanks in advance !!


Have you received any error?

Have you tried using:,'_self');