Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

clickable background

hello,

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

Thanks
0
attipa
Asked:
attipa
1 Solution
 
TimCotteeCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now