Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

onClick goto another page?

Posted on 2004-03-22
6
Medium Priority
?
16,161 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 63

Expert Comment

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

Accepted Solution

by:
Zvonko earned 1000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

597 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