Solved

onClick goto another page?

Posted on 2004-03-22
6
16,079 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

828 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