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
balraj singh 33balraj singh 33 

What is the code doing here , can some please explain.Is it to allow some popup for "Authentication'" where we select Allow or deny for login

<apex:outputPanel rendered="

{!NOT(ISPICKVAL($User.UserType,'Guest')) }">

<script> window.location.href = "./"; </script> </apex:outputPanel>
Best Answer chosen by balraj singh 33
Suraj Tripathi 47Suraj Tripathi 47
Hi balraj,
You are rendering the output panel when the value selected in the user type picklist is other than the 'Guest'.
That means this output panel will run only when the user type picklist have value other then Guest.
Coming inside there is a script.
Basically, window.location.href  this is used to get the URL of the current page.

If this helped you please mark it as the best answer.
Thank you!
Regards 
Suraj Tripathi.