I’m assigned to a project where I’m to develop SharePoint hosted app using JSOM.
Problem Background
There I wanted to redirect to external web page. Eg.http://google.com. I used
- location.href='http://google.com';
- window.location.replace("http://google.com");
- document.location.href = url;
Solution
I set a Timeout and it worked for me; use the below code to redirect.
setTimeout(function () { document.location.href = url }, 20);
Conclusion
Hope this will help you. :)
it's not working...
ReplyDeleteSir i want to redirect it from a sharepoint content editor web part