<script> tag somewhere. Fortunately, browsers have by and large reached a point where there’s a broad consensus on standards, and we have a whole host of libraries that deal with the shadowy bits that nobody likes to talk about. Adding advanced functionality to our websites in 2013 is so easy we almost don’t need libraries any more!
When a URL is requested, serve the content that lives there. Please.
- Well, that’s not strictly true.
- Hah… supporting both? Who am I kidding?!
- There really is no reason not to have a nice form somewhere to let your users log in, even if they rarely see it.