Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.onclick

Status
Not open for further replies.

sudhir037

Programmer
Jan 31, 2007
3
US
window.onclick = test;

function test(){
alert("Testing");
}

this doesn't work. any help
 
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.
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top