Click to See Complete Forum and Search --> : Page directing Prob
Dansser
05-04-2003, 02:40 AM
I have a source code that opens a new window and closes the window automaticly after it dose what its suppose to do BUT....
I need to know is there a way to wright in a code that would make the page grab a new URL as the new window is closing ??? or just before it closes???
instead of it closing and being back at the page it started.....
Thanks Dansser
khalidali63
05-04-2003, 08:59 AM
To get the current windows url
window.location.href
and to pass it to a text field in the parent window
top.opener.document.formName.textFieldName.value = window.location.href;
Now If I understood you right,you can do the above with all the same domain urls,but if you opened a page say
www.yahoo.com
that will be an out of domain page and browser security settings won't allow JavaScript to get that value.
Dansser
05-05-2003, 06:20 AM
THanks I figured it out on my own But the added info will come in handy Thanks Alot for your Time!
Also though in the same script there is a html link thats starts the script...With in the page, is there any other way to start the script other then putting the link to a meta tag and using a refresher timer....
I want it to load when people are sent to the page... Not by cliking a button on the same page
I simply took the link in the page and put in a meta tag to the link and gave it a 5 second refresh to start the script
this was the link on the page..
<a href="javascript:WriteRndMsg(false, false, 750)">Normal text</a>
To make the script start when loaded I just did this in the meta tags:
<meta http-equiv="refresh" content="5;url=javascript:WriteRndMsg(true, false, 750)">
EAMPLE of my page is here:
http://fp1.centurytel.net/gates/nav0.htm
Any Help on this script would be great thanks
Dansser
05-06-2003, 02:18 PM
after clicking that LINK and after the effect goes away just click on exit this site there will be a second window that says Close This Window! you can view the sorce code on that page...
Thats the page that has the effects and commands in it..
Right now its doing like I want but going to that page in my domain its opening 3 windows not just 2
Thanks Dansser