View Full Version : Standard Input Buttons
Dingbat
10-12-2002, 10:15 AM
I am trying to use a standard input button to close a window and at the same time to open a new page in a frame. I have tried the following: <a href="javascript:opener.location='../../../form.html';window.close()"> in various places in the input tag without success. Can any person help please?:confused:
PauletteB
10-12-2002, 02:27 PM
Presuming you want the button in the frame you want replaced:
<form action="yournewpage.html" method="get" name="whatever">
<input type="submit" value="Close">
</form>
or do you want to close a different window? or open the new page in a different frame?
Dingbat
10-12-2002, 02:46 PM
Hi Paulette,
Thanks for the response. The events are: A popup is generated from a frame page. What I am looking for is: To close the popup from a standard button and at the same time to open a new page in the main frame window. "main" is the target name.
Regards,
The Dingbat:confused:
PauletteB
10-12-2002, 03:25 PM
To close the popup from a standard button
Where is this button?
On the pop-up, or on the page which generates the pop-up?
Dingbat
10-12-2002, 04:35 PM
Hi,
The button is on the popup!!
Regards.
:confused: :confused:
PauletteB
10-12-2002, 04:53 PM
Inside the popup:
<form action="javascript:void(0)" method="get" name="whatever">
<input type="button" value="Close"
onClick="opener.location='yournewpage.html';window.close()">
</form>
remove the spaces the forum may insert...
Dingbat
10-12-2002, 06:30 PM
Hi Paulette,
Thanks for that code it worked a treat.
With kind regards,
The Dingbat:thumbsup: :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.