Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 36
1 Users 8 Guests Online
Forum Index » HTML » Making the window close and go
Posted on Tuesday 3rd July 2007 at 08:26 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
I don't know how to explain this very well, I want to be able to javascript:window.close() a page, and then make the other page that the popup came from to change to a different page. I know this sounds really really hard, but here:

http://hotelmario.info

If you go there, click poll, there will be a message under the poll saying:

Click here to learn more

Once they clicked there, the mini window will have closed, and the page (with the logo and ads and enter hotel crap) will have changed to custom.php or something like that.

I was hoping this is possible. Thanks.
Posted on Tuesday 3rd July 2007 at 09:10 PM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
umm
window.open('url to open')
Posted on Tuesday 3rd July 2007 at 10:58 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
Nope, that just opens a new window...
Posted on Tuesday 3rd July 2007 at 11:14 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
Okay, sorry for double post but...

I got this so far:

[php]
<a href="test.php" onclick="javascript:window.close();">Test</a>
That just closes the window.


:S...
Posted on Tuesday 3rd July 2007 at 11:20 PM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
i dont get it what do you want to do?
Posted on Tuesday 3rd July 2007 at 11:41 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
Okay, go to my website. The one listed above. Click poll, and then click "here" it closes. When it closes I want the page it closes to to change to a different page.

Example:

Click the "here". Window Closes. The current page (with the banner and whatnot) goes to a different page.
Posted on Wednesday 4th July 2007 at 01:02 AM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
oh
ya i get you now.
Posted on Wednesday 4th July 2007 at 01:21 AM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
:). I hope this is even possible........
Posted on Friday 17th August 2007 at 12:12 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
Impossible?!?
Not when Ilyas is around :p
try this...

<a onclick="window.replace('link.php');">Link text</a>

Hmm first time i tried the above one it didnt work. If it doesnt work then try this one which works for me...

<a onclick="location.replace('link.php');">Link text</a>