473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Use onclick to open URL in main window - not in a new window

I've figured out most of the following but need help changing the onclick reference so that it does not open in a new window. I can't use a "A href" as it overrides my other"A href". I need the onclick to bring up the URL in the main browser window.

Any thoughts appreciated!

TIA,
Christina

[HTML]<A href=http://www.***.ca/images/IMG_2324_2.JPG rev=loadarea:: rel=enlargeimage::mouseover LINK?><span onmouseover="HideDIV('div0');DisplayDIV('div1')" onmouseout="HideDIV('div1');DisplayDIV('div0')" style="cursor:pointer"><IMG style="WIDTH: 65px; HEIGHT: 65px" height=65 alt="" hspace=0 src="http://***/images/0022.jpg" width=65 vspace=10 border=0; onclick="window.open('http://www.***.ca/subpage6.html'); return true;"></SPAN></A>[/HTML]
Jun 15 '07 #1
8 10296
JosAH
11,448 Expert 8TB
Note that you posted your question in the Java forum which is not the correct
place for your question. I can move your question to another forum if you want.
Just tell be which one; oh, and welcome to tsdn ;-)

kind regards,

Jos
Jun 15 '07 #2
Yes, thank you, please move it wherever you think someone may be able to see what I can't!
Jun 16 '07 #3
r035198x
13,262 8TB
Yes, thank you, please move it wherever you think someone may be able to see what I can't!
Moved to Javascript forum .
Jun 16 '07 #4
acoder
16,027 Expert Mod 8TB
Changed thread title.
Jun 16 '07 #5
acoder
16,027 Expert Mod 8TB
Try:
Expand|Select|Wrap|Line Numbers
  1. onclick="window.location.href='http://www.***.ca/subpage6.html'"
Jun 16 '07 #6
Thanks Acoder for the simple solution! The fog has cleared....
Jun 16 '07 #7
Thanks Acoder for the simple solution! The fog has cleared....it works perfectly!
Jun 16 '07 #8
acoder
16,027 Expert Mod 8TB
No problem, you're welcome.
Jun 18 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cam | last post by:
Hi I'm using this simple rss parser that i would like to have open in another window. But I'm very much a beginner in php scripting. Here is the script on the page <?php ...
5
by: Sean Berry | last post by:
I have a news video that I am sending out for a client. There are embedded links to flash movies in the email. I want the popup to be a set size (400 x 400). I am currently using the...
1
by: H2 | last post by:
Hi all, Any one know how to open a new windows in a child window using javascript? What I need to do is that, in my main page, there is a button, onclick, it opens one child windows. In the child...
11
by: sri_san | last post by:
Hello, I am working on a page where I need to open a new webpage on a button click. I tried using javascript's window.open but with popup blocker enabled, it doesnt seem to work. Any way to get...
6
by: shil | last post by:
I have a server side button that needs to do some preperation and afterwards, if everything goes well, open a new browser with a specific url. I know how to execute javascript from a server side...
5
by: rockdale | last post by:
Hi, all: I have a linkbutton and I use javascript to open another webpage in a new window. I also want to set my session variable value when this linkbutton get clicked. These session variable...
1
by: nashak | last post by:
Hello, I have a aspx page on which I have a button. In the click event method in code-behind I do some processing and now need to open a new window in another browser and pass a couple of...
1
by: yuenli | last post by:
Hi! I am facing a problem here. I wish to open a sub window from another sub window which means when i click on the main parent window a small window will appear then when i click on the button on...
21
by: David C | last post by:
I have an ASP.Net page that does a Response.Redirect to a code-created url. Is there any way to code the redirect to open a new window similar to the Javascript window.open() ? Thanks. David
3
by: ndeeley | last post by:
Hi, I've got a link nested inside a form which, when clicked, should open a new window. Whilst it's doing this it also opens the page in the existing parent window as well. I didn't write the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.