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
visualforce_devvisualforce_dev 

passing current id to window.open

how can I pass "System.currentPageReference().getParameters().get('variable_name')"
to window.open..
i tried like this
 
window.open ("/apex/viewsp?q={!System.currentPageReference().getParameters().get('selectedCategoryId')}",' status=1,height=600, width=1000,menubar=no,toolbar=no');
 
but it is showing an error '}' expected
 
werewolfwerewolf
So you're trying to do what now?  Parse the ID out of the current URL and pass it to some other URL in window.open?
visualforce_devvisualforce_dev

still its not wrking, so i m using same window

page.pagename..