in class: public String getReferer() { return ApexPages.currentPage().getHeaders().get('referer'); }Then you can just get this in your page using: In page :<apex:outputText value="{!Referer}"/>
-----------------------
Let me know if this works..we have another options also.. also you can refer below links: http://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_query_params_getting.htm
Please check with the below code :
function currentPage(){
return {!$CurrentPage.parameters.relatedId};
}
Please add functinality based on your requirement within the method.
Regards,
BDatla
All Answers
There are many option please use these
in class:
public String getReferer() { return ApexPages.currentPage().getHeaders().get('referer'); }Then you can just get this in your page using:
In page :<apex:outputText value="{!Referer}"/>
-----------------------
Let me know if this works..we have another options also..
also you can refer below links:
http://www.salesforce.com/docs/developer/pages/Content/pages_quick_start_query_params_getting.htm
Please mark this as best answer if it helps you.
I have a javascript function whcih should beahave differently for different pages. I want it in javascript function only
Please check with the below code :
function currentPage(){
return {!$CurrentPage.parameters.relatedId};
}
Please add functinality based on your requirement within the method.
Regards,
BDatla