Jan 31, 2007 #1 sudhir037 Programmer Joined Jan 31, 2007 Messages 3 Location US window.onclick = test; function test(){ alert("Testing"); } this doesn't work. any help
Jan 31, 2007 #2 theniteowl Programmer Joined May 24, 2005 Messages 1,975 Location US try: document.onclick = test; Or try putting the onclick event in the body tag of the page. At my age I still learn something new every day, but I forget two others. Upvote 0 Downvote
try: document.onclick = test; Or try putting the onclick event in the body tag of the page. At my age I still learn something new every day, but I forget two others.
Jan 31, 2007 Thread starter #3 sudhir037 Programmer Joined Jan 31, 2007 Messages 3 Location US document.onclick is working but i have different iframes and a combination of .jsp files get loaded so i have to opt for window oclick event only Upvote 0 Downvote
document.onclick is working but i have different iframes and a combination of .jsp files get loaded so i have to opt for window oclick event only
Jan 31, 2007 #4 dwarfthrower Programmer Joined Apr 22, 2003 Messages 1,625 Location AU Unfortunately the window object does not fire an onclick event. You could try onfocus and see if that meets your needs. Never be afraid to share your dreams with the world. There's nothing the world loves more than the taste of really sweet dreams. Enable Apps Upvote 0 Downvote
Unfortunately the window object does not fire an onclick event. You could try onfocus and see if that meets your needs. Never be afraid to share your dreams with the world. There's nothing the world loves more than the taste of really sweet dreams. Enable Apps