Solved

onClick goto another page?

Posted on 2004-03-22
6
16,054 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
alert before form submission 6 27
Javascript create file issue 4 45
JavaScript: Issue with onClick 5 34
CONVERT JAVASCRIPT BUTTON TO HYPERLINK TEXT 6 12
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

929 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

15 Experts available now in Live!

Get 1:1 Help Now