Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto execute an URL

Status
Not open for further replies.

cabernet

Technical User
Feb 24, 2003
75
PK
Hello
I would like to know if the following is possible
Just do a very basic HTML page that contains a full path URL
such as <a href=&quot; etc..&quot;>
then if an user decide to reach the above described page from a menu the contained URL will auto execute without further action of the user

this is related to a news site
some news are published by my own chief editor and other are links to other newspaper that I have a deal with

In that case if a user clicks on the friendly newspaper link he or she will exit my site
by setting the link to open within my site I will keep the user on site
and I can set a back button to the original menu

What I try to avoid is a first link that goes to another page and within: A secondary link that leads to the outside news site

Any JS to do this?
Or any other solution?

By advance thank you
 
ADDENDUM
I did not mention that the new link needs indeed to open in the same page

due to design I may not use iframe or frames
 
I'll try to answer your question as I understand it....

You want to open certain &quot;friendly sites&quot; in the same
window so that you can use &quot;back&quot;..

And you want certain &quot;other&quot; sites to open in a
new window that has no &quot;back&quot;..

If you want to do that simply can you just use the
&quot;target&quot; property of the link like:
<a href=&quot;site.com&quot; target=&quot;_blank&quot;>New Page and Window</a>
which opens the link in a new browser window

The default of course if you leave off the &quot;target&quot;
property the link will be opened in your current
browser window
<a href=&quot;site.com&quot;>New Page Same Window</a>

Hope this is what you meant if not let us know.

2b||!2b
 
thank you
No I cannot use frame or target
and I wish to shorten the process
if we consider any means of writing
<a href=&quot;site.com&quot;>new page</a>
we still need to click on &quot;new page&quot;
I need to find a way that will bypass the need to click on
&quot;new page&quot; so it will auto-open the page without further any user further action
please remember that I will not use frames of Iframes

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top