Solved

onClick goto another page?

Posted on 2004-03-22
6
16,048 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 "http://www.experts-exchange.com"). How can I do this???

   Thanks
   - Marc
0
Comment
Question by:MarcGraff
6 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 10649841
onClick on what? on a button?
0
 
LVL 63

Accepted Solution

by:
Zvonko earned 250 total points
ID: 10649862
If so, then check this:

<html>
<body>
<form>
<input type=button value="EE" onClick="window.location='http://www.experts-exchange.com';">
</form>
</body>
</html>

0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10649884
or a link
<a href="http://oldlook.experts-exchange.com" onclick="window.location = this.href; return false;">EE</a>
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 63

Expert Comment

by:Zvonko
ID: 10649922
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 10649926
Thanks! I just couldn't get it.

   Thanks again Zvonko
   - Marc
0
 
LVL 25

Expert Comment

by:devic
ID: 10649927
or a whole page
============
<html>
<body onclick="window.location='http://www.experts-exchange.com';">
hurra
</body>
</html>
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now