How can I open a new window or tab with hyperlinking

  • Thread starter I have a good question
  • Start date
I

I have a good question

How can I open a new window or tab with publisher when I hyperlink to another
website so that my site is not left?

Also is there a way to bookmark the part of the page you are on so that when
you hyperlink to another page or site and you use the back button of the
browser it returns you to the part of the page that you left?
 
S

Spike

Using the insert html code fragment feature, insert the following snippet
somewhere on your page where it won't be in the way:

<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url); }</script>

Then insert text or image into your page, right click, insert hyperlink, and
paste the following in the hyperlink dialog:

javascript:Show('http://www.mydomain.com/','')

Spike
 
I

I have a good question

Thanks Spike, I just need a little more info on how to... If I insert the
javascript into the dialog box - where do I put in the address of the site I
want to link to?
 
S

Spike

Type the script in the HTML fragment box and put it anywhere on the page out
of the way
The linking code javascript:Show('http://www.mydomain.com/','')
becomes the hyperlink either on text or on an image
mydomain.com is replaced with the address of the page you want to go to with
the new window

Spike
 
I

I have a good question

Excellent! Thanks Spike works like a charm :)

Spike said:
Type the script in the HTML fragment box and put it anywhere on the page out
of the way
The linking code javascript:Show('http://www.mydomain.com/','')
becomes the hyperlink either on text or on an image
mydomain.com is replaced with the address of the page you want to go to with
the new window

Spike


.
 
S

Spike

Glad to hear that it worked for you. Thanks for posting back with your
success.

Spike
 
V

Vet

One more good question- do I need to change anything in the HTML fragment box
to make this work? I continue to get an error on page when I try my links.
Thanks for the good info so far.
 
A

Andy2427

Spike,
If I would like to create several hyperlinks on one page to different pdf
flyers in addition to a hyperlink to an external website (URL) should I
insert two different snippets? I have had success hyperlinking to the
external website (URL) bu cannot figure out how to hyperlink the PDFs.
Thanks,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top