HighDots Forums  

How to redirect to another page when click in a div?

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss How to redirect to another page when click in a div? in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
LWD
 
Posts: n/a

Default How to redirect to another page when click in a div? - 11-05-2009 , 08:59 AM






Hi!
I´m using a div like a button. How can I redirect the user to another
page when he click in the div?
Thanks!

Reply With Quote
  #2  
Old   
Michel Belleville
 
Posts: n/a

Default Re: [jQuery] How to redirect to another page when click in a div? - 11-05-2009 , 09:05 AM






JavaScript DOM 101 :

window.location.href = "
http://whatever.url.you.want.com/and/event/some/doc/there.html"

Michel Belleville


2009/11/5 LWD <lwdias (AT) gmail (DOT) com>

Quote:
Hi!
I´m using a div like a button. How can I redirect the user to another
page when he click in the div?
Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.