You could have the best of both worlds by making a script that will make an XHR request for the next page of comments and have the link gracefully degrade by linking to the next page of comments too...
Use ? to make the last character or multiple characters in a () optional. Use | to as an "OR" operator. ie. (a|b) matches a OR b.
Also, don't remove the underscored in the $variable_names like that.
The PHP way is the easiest way as it requires less code, works on browsers that don't support JavaScript, and doesn't even let the user load the original page.
I'm assuming that there is a php file...
First of all, this is something you would want to do server-side (ie. "Location: $redirect") as the title of a page will show before a script can read it. Second of all, are you checking the title or...
Change the month variable line to this:
var month = currentDate.getMonth() + 1;
There are 12 months but the first one starts out at the number 0 in getMonth().
If you want it to be part of the actual image, you should try PHP+GD to generate dynamic images with text in them. If you don't want to use anything server-side you could use <canvas> and draw text...
WebKit nightlies (but not Firefox 3+) give me an "Unsafe JavaScript attempt to access frame" error (not impacting any of the function of the code though) when I try to send messages to iframes on...