Javascript Replace All Elements With Id Format When The Page Loads

Javascript Replace All Elements With Id Format When The Page Loads