clickable background

hello,

Is it possible to make the background of the body of a page clickable to go to a different website?

Thanks
attipaAsked:
Who is Participating?
 
TimCotteeConnect With a Mentor Head of Software ServicesCommented:
Hi attipa,

Just add an onclick to the body tag:

<body onclick="window.location.href='http://www.somesite.com';">

Why you would want to is beyond me but it is certainly possible.

Tim Cottee
0
 
attipaAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.