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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onclick to new page 1

Status
Not open for further replies.

AWEinCA

Programmer
Oct 18, 2000
35
US
I want to use a button to redirect my browser to a new page.

I can do this by opening the new page in a new window, but I don't want a new window.

I would like the button to open the new page in the same window.

Would someone know how to do this?

Thanks in advance,
Aaron
 
Hi Aaron,

try this,

<input type=&quot;button&quot; value=&quot;Go Now&quot;
onclick=&quot;document.location='myfile.html'&quot;>

hope this helps,

Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top