Jan 31, 2007 #1 sudhir037 Programmer Jan 31, 2007 3 US window.onclick = test; function test(){ alert("Testing"); } this doesn't work. any help
Jan 31, 2007 #2 theniteowl Programmer May 24, 2005 1,975 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 Jan 31, 2007 3 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 Apr 22, 2003 1,625 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