function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
window.location.href = 'https://www.google.com'
<apex:form> <apex:commandButton value="Exit" onclick="window.location='/'" reRender="none" /> </apex:form>
<apex:page> <script> function load(){ window.open("/home/home.jsp", "_self"); } </script> <apex:form> <apex:commandButton value="Close" oncomplete="load();"/> </apex:form> </apex:page>
target="_blank";
Hope this will resolve your issue.
Cheers,
Kuldeep
You can use to below function to open in same window/tab
when i will click exit button it should redirect me to the home page in the same tab
Use below code:
<script>
function onClickHandler()
{
var domainURL = '{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))}';
window.top.location = domainURL + 'home/home.jsp';
}
</script>
<apex:commandButton onclick="onClickHandler();return false;" value="Exit"/>
Thanks,
Gaurav
Hi, Please try like the above code.
can u try the below code,