Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $("div").click(function(){
- //get the url from href attribute and launch the url
- window.location=$(this).find("a").attr("href"); return false;
- });
- // how to use
- <div><a href="index.html">home</a></div>
- });
Add Comment
Please, Sign In to add comment