Tuesday, March 14, 2006

JAVASCRIPT: Redirect

I keep having to look this one up, so I posted it here so I could always find it.

<button 
onclick="window.location='http://www.mysite.com/';">


this also works:
<button 
onclick= "window.location.href='http://www.mysite.com/';">

1 comment:

Anonymous said...

Hi,

I want to redirecto my one blog to another blog, Is it possible if yes,
plz send me code of java script to redirect my one blog to another blog.

Plz send me code at my email id gautam.jitendra@gmail.com

Thanks
Jitenra Kumar
http://www.affordable-seo-link-building.blogspot.com/