954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Display URL from another traget (php)

<script language="javascript">
document.writeln(document.location);
</script>


hi the above code display the url of the page that is load on, but i was wondering do you guys know of way to display traget windows url


for example

this will open a new window with the hidden name actionwindow

but the page the code is write i would like to display the url of actionwindow.

humm maybe this is good example

running the page from http://yourdomain.com/index.html >then it will open a new window with a hidden name actionwindow with the url http://yourdomain.com/winner.html but i would like to display that url on the following url http://yourdomain.com/index.html or another new page

any ideas ?

vb28
Newbie Poster
3 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

Where do you want to write the URL? In the status bar, on the page?

If you set the target url as a variable, you can echo it as you wish.. or you could just mix javascript in with your php.

nickw
Newbie Poster
3 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You