'fraid you can't do that with JavaScript (not client side anyway).