Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Basic help on a syntax

Status
Not open for further replies.

Stevehewitt

IS-IT--Management
Jun 7, 2001
2,075
0
0
GB
Hey ppl,


I'm a newbie to Javascript and I have one basic problem:
This code would open up a NEW window to the site stated:

window.open("
What would I type in so it opens up in the same window?

Cheers, Steve Hewitt
Systems Manager
 
Try [tt]window.location='[/tt] instead, and see how that works for you. Paul Ellis
[hammer] I've been programming since you had to punch holes in cards to code. (Always remember, number your cards!)
 
I don't know why you use the javascript for (it could be a very complex part, so maybe my answer has no benifit for you) but maybe just a link is enough for you:

<A href=&quot; to twinhelix</a>

Hope this helps,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Thanks Pellis! It worked. I needed it to use in a long script i'm modifying for a menu system. The example I got opened all the links into a new window, and as a newbie I didn't know the correct syntax for it!

Many thanks Steve Hewitt
Systems Manager
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top