function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AmarjeetAmarjeet 

web tab redirection

I had created a web tab to redirect it to gmail page by giving the url but it is showing a blank page. plz help me 
Best Answer chosen by Amarjeet
Nishad KNishad K
Hi Srikant,

If you know little bit coding you can achevie this by using Visualforce Tab. Simplye Create a visual force page as below and create a Tab for that page which will open the URL in new tab
<apex:page>
<script>
var strWindowFeatures = "location=yes,height=570,width=520,scrollbars=yes,status=yes";

//URL Goes Here
var URL = "https://www.google.com";

//Call Function
var win = window.open(URL, "_parent", strWindowFeatures);

</script>
</apex:page>
Or create web tab:
http://www.infallibletechie.com/2014/02/1.html 
Regards,
 

All Answers

Hemant_SoniHemant_Soni
Hi Srikant Swain,
Actually problem is this web tab is only used for internal salesforce use.not for externally used.
For externally uses you need to intigrate with apex.
if you give salesforce internal url then it will show you page.
for Example:-
https://ed.my.salesforce.com/home/home.jsp

please mark as solved.

Thanks
Hemant
 
AmarjeetAmarjeet
heloo Hemant,
                        The above link not working ,please sujjest me any other method to do . I heard about s-control page to redirect .Is it working.
thanks
Srikant.
Hemant_SoniHemant_Soni
Hey Srikant Swain,
Above link is my salesforce org link. so try with your salesforce org link. 
Thanks
 
Nishad KNishad K
Hi Srikant,

If you know little bit coding you can achevie this by using Visualforce Tab. Simplye Create a visual force page as below and create a Tab for that page which will open the URL in new tab
<apex:page>
<script>
var strWindowFeatures = "location=yes,height=570,width=520,scrollbars=yes,status=yes";

//URL Goes Here
var URL = "https://www.google.com";

//Call Function
var win = window.open(URL, "_parent", strWindowFeatures);

</script>
</apex:page>
Or create web tab:
http://www.infallibletechie.com/2014/02/1.html 
Regards,
 
This was selected as the best answer
AmarjeetAmarjeet
Thanks Nishad k ...