473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Popup Question: on popup have one button to close and another to close and then redirect to another page

Hi,

I'm probably going to get harassed just for mentioning the
unmentionable, but since I have if anyone could answer this question
that would be much appreciated.

As per the rather long subject, I would like to (well, my boss would
like me to...) on a popup have one button to close and another to
close but then redirect to another page.

Heeeeeeeeeeeelp!

Thanks,

Dave.
Jul 20 '05 #1
4 4962
-DRB- <bo*@bog.com> writes:
As per the rather long subject, I would like to (well, my boss would
like me to...) on a popup have one button to close and another to
close but then redirect to another page.


<input type="button" value="Close" onclick="window.close()">
<input type="button" value="Redirect"
onclick="parent.location.href='otherpage.html';win dow.close()">

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Hi,

Many thanks for taking the time to reply. Somehow, I kind of figured
it might be you!

Didn't quite work though. The second option closes the page but
doesn't then go to the other one.

The page is:

http://www.btinternet.com/~david.bog...ar/Oct2003.htm

And the popup is the one on the 6th.

You've helped me before, if you could do it again I'd be a very happy
chappy!

Thanks,

Dave.


On 22 Sep 2003 15:26:35 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:
-DRB- <bo*@bog.com> writes:
As per the rather long subject, I would like to (well, my boss would
like me to...) on a popup have one button to close and another to
close but then redirect to another page.


<input type="button" value="Close" onclick="window.close()">
<input type="button" value="Redirect"
onclick="parent.location.href='otherpage.html';win dow.close()">

/L


Jul 20 '05 #3
-DRB- <bo*@bog.com> writes:
Didn't quite work though. The second option closes the page but
doesn't then go to the other one.


....due to a mistake that I make far too often: switching "parent" and
"opener". The onclick attrbiute should be
onclick="opener.location.href='calendar.htm';windo w.close()">

Good luck
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #4
Legend.... huge thanks!

On 23 Sep 2003 01:45:28 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:
-DRB- <bo*@bog.com> writes:
Didn't quite work though. The second option closes the page but
doesn't then go to the other one.


...due to a mistake that I make far too often: switching "parent" and
"opener". The onclick attrbiute should be
onclick="opener.location.href='calendar.htm';windo w.close()">

Good luck
/L


Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
4
by: moose | last post by:
OK Popup window? No problem PDF in popup? No problem But what about a couple of Close Window buttons? Imagine a "Close Window" button at the top of the popup page. Then the PDF which can...
4
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
6
by: mkobus | last post by:
Im relatively new, so please be patient with me... I need to update a parent .aspx screen from a popup and close the popup. Normally I would use...
4
by: SteveS | last post by:
Hello. This is a strange problem which does not make sense to me. I open a popup page with the following javascript code: function OpenDenyWindow(changeId) {...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
3
by: Learner | last post by:
Hello, I have two buttons on one of my VehicleDetails.aspx page. Obiviously these two buttons takes the user to two different pages. Now my client is interested in having a linkbutton instead of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.