use pageX function to access event ppty