• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1148
  • Last Modified:

Open Website in same window, not within frame

Here's a ling of code. It works fine but it opens the website within a frame. I want it to open the website in the same window, so it replaces the the existing one. Is there something equivalent to target I can use?
<li id="Our_Website" onMouseOver="show(this.id);" onMouseOut="hide(this.id);" onClick="nav(this.id, '../../index.html', 2);">To our Website</li>

Open in new window

0
Jason210
Asked:
Jason210
1 Solution
 
Jai STech ArchCommented:
onClick="javascript:window.open('../../index.html','_self');"
0
 
Jason210Author Commented:
thanks
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now