Leave the page. Using the javascript: protocol all of these should trigger the Good bye! message via the onbeforeunload handler and then navigate to a different page.
Stay. Using the javascript: protocol none of these should trigger the Good bye! message via the onbeforeunload handler since they don't navigate to a different page.