You need to sign in to do that
Don't have an account?
shra1_dev
how to redirect to a page from javascript
Hi,
Please Let me know how to redirect to a page from javascript. This javascript is being called if any event occurs.
I was trying with
window.location('/apex/Pagename');
But it is not working.
Please help me...........
Regards,
shra1
Hey I got it my self
It should be :
window.Location="someurl";
All Answers
Hey I got it my self
It should be :
window.Location="someurl";
is there any way to do this with a controller class and a variable? e.g. location = '/' + recId
window.Location="someurl";
Instead
window.Location.href="someurl";