PDA

View Full Version : In need of a very simple script



momathome
11-14-2006, 09:28 PM
Hopefully I am in the right place..I am looking for a simple script I saw here awhile ago but cannot find at the moment.
What it does is ..when a viewer selects a link you have on your site which links to another external site ..once they have finished viewing the external document..it will close the window back to your own site..(helps to keep your traffic at your own site) can anyone help me please..???

I searched DD..and dont seem to be able to find it.

boxxertrumps
11-14-2006, 09:47 PM
so opening a new window?

uhhh..... <a href="externalsite URL" target="_new">?

thats all i can think of using your description...

PS thats as simple as it gets.

djr33
11-15-2006, 12:25 AM
You can also use a popup.
Once on the page, IF and only if you opened that page with javascript, a link:
<a href="#" onClick="window.close()">
should work.

But... now I can't remember what the function is... window.close()? something... not sure if it's a default or not.

So... that could work, but just hitting the X will work best if they want to return to your site later. Just do the above... open a new window with the site in it.