Hi, I need a really quick javascript done. Basically, I need to create a javascript that will open a new url window when someone clicks their mouse on the webpage. That is it. Nothing more, nothing less. If you know how to do this and want to make a quick $10 this is the job for you. thanks
Wrap everything inside a div, and use the onclick attribute to enable redirecting to a link when clicking anywhere on the page. Why would you need something like that though? onclick="window.location='http://www.yoururl.com'" Code (markup):
If you simply want clicking anywhere on the page to redirect to a specified URL, use: <div onclick="window.location='http://www.yoururl.com'"> ...... . ....... Page Content Goes Here ...... . ....... </div> Code (markup): If you want the whole page to act as a link with the cursor changing to a pointer, then use: <div onclick="window.location='http://www.yoururl.com'" style="cursor:pointer"> ...... . ....... Page Content Goes Here ...... . ....... </div> Code (markup): There you go. Shame on you, ansi for the negative reaction when someone's willing to help. Good luck hunting for your ten bucks
I know, like pay your monthly rent. Are you sure you're located in Florida? Helping others doesn't hurt, you can earn some of your customers that way, too.
not quite sure i'm following you on the rent thing but anyway i help others every day i'm not worried about that. he offered $10 to someone, i offered to do the job and then you came along and just gave it away, that's why i was upset. doing that after i had already made a post offering to do the work was wrong.