We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

onClick goto another page?

MarcGraff
MarcGraff asked
on
Medium Priority
16,418 Views
Last Modified: 2008-10-27
I have a page where I am using onClick event. I want it to go to a web page (like "https://www.experts-exchange.com"). How can I do this???

   Thanks
   - Marc
Comment
Watch Question

ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
onClick on what? on a button?
Systems architect
CERTIFIED EXPERT
Top Expert 2006
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
or a link
<a href="http://oldlook.experts-exchange.com" onclick="window.location = this.href; return false;">EE</a>
ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:

Author

Commented:
Thanks! I just couldn't get it.

   Thanks again Zvonko
   - Marc
CERTIFIED EXPERT

Commented:
or a whole page
============
<html>
<body onclick="window.location='http://www.experts-exchange.com';">
hurra
</body>
</html>
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.