Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 2nd, 2006, 10:53 AM
Friend of Wrox
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default FORM action opens in new window

BUT I would like this page to replace the current page.

Here's the call in the FORM tag:

 <form action="DoCustomerOptions1.asp" method="post" target="_SELF">

I know I need some sort of document.object (javascript), but I'm just not clear on how to script it.

Any help would greatly be appreciated
Old March 2nd, 2006, 11:02 AM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

You're looking for target="_top" if this form is in a frameset. If it isn't in a frameset no target is needed at all.



Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Old April 7th, 2006, 08:16 AM
Friend of Wrox
Join Date: Jun 2004
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts

Great, thanks!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to perform a task after a form opens/displays EdAROC Access VBA 1 June 8th, 2007 08:18 AM
form that opens reports and closes form hartliec Access 1 December 13th, 2006 09:00 AM
Two action in a form johnjohn Classic ASP Components 1 November 16th, 2004 05:45 PM
form opens another form tmc Access 3 August 4th, 2004 02:42 PM
I want button action to change current window drb2k2 JSP Basics 0 June 4th, 2003 06:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.