| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| js to open new page when entering?; so it opens new page in new widow | |
|---|---|
| Tweet Topic Started: Mar 22 2005, 07:51 PM (473 Views) | |
| spdr | Mar 22 2005, 07:51 PM Post #1 |
|
Member
![]() ![]() ![]()
|
i need the java script to open a new page in the same window, before the current page loads... anyhelp? thanks. |
![]() |
|
| Sani | Mar 23 2005, 01:31 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try this.. In your <head></head> tags..
then, change your <body> tag to..
It should work..
|
![]() |
|
| spdr | Mar 23 2005, 01:07 PM Post #3 |
|
Member
![]() ![]() ![]()
|
newWin, so how do i open it up in the same window? |
![]() |
|
| Stefan | Mar 23 2005, 03:15 PM Post #4 |
![]()
Mew?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You don't need javascript to do it, HTML will do:
Replace the red with the URL you want to open. |
![]() |
|
| Sani | Mar 23 2005, 08:17 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Oh.. My bad, I thought spdr wanted to open a new window..
|
![]() |
|
| MegaKN | Mar 24 2005, 10:59 AM Post #6 |
|
Ketchup is for winners, Ted.
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Or you could use PHP:
|
![]() |
|
| Rory | Mar 24 2005, 11:01 AM Post #7 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
But they asked for JavaScript, so not much point giving the php version? |
![]() |
|
| MegaKN | Mar 24 2005, 11:02 AM Post #8 |
|
Ketchup is for winners, Ted.
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm giving him an alternative way while teaching him a bit of PHP. I would think that's helpful. :/ |
![]() |
|
| nickoladze | Mar 24 2005, 11:02 AM Post #9 |
|
Member
![]() ![]() ![]()
|
yeah php is better in the long-run
|
![]() |
|
| Rory | Mar 24 2005, 11:03 AM Post #10 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I suppose it depends on if PHP is availiable or not. Seeing as php is pretty different to use and there is a fair chance PHP isn't availiable, it might have been better to explain that. |
![]() |
|
| spdr | Mar 24 2005, 08:03 PM Post #11 |
|
Member
![]() ![]() ![]()
|
this is the one im using. thanks tho. this takes 5 seconds, but i could make it shorter if i wanted. tho i found when i used 1 second 1000, it didnt work. thanks anyway. and no, geocities does not support php, (as far as i know.) but thanks again. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
6:27 PM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)




6:27 PM Jul 11