printing an <html> ... </html> string using <href>


J

John

Hi

var poster="<html><head> ..... etc .... </html>";
var animal='dog';

The string contains images and text that changes.

Originally I wanted to do something like

print "<a href=" + poster + ">Choose Poster of a " + animal + "</a>";

When you click the 'Chose Poster of a Dog' another page would appear which
could be printed.

I now realise that <href> cannot work in this context.

What construct should I be using?

Regards
John
 
Ad

Advertisements

S

shimmyshack

Hi

var poster="<html><head> ..... etc .... </html>";
var animal='dog';

The string contains images and text that changes.

Originally I wanted to do something like

print "<a href=" + poster + ">Choose Poster of a " + animal + "</a>";

When you click the 'Chose Poster of a Dog' another page would appear which
could be printed.

I now realise that <href> cannot work in this context.

What construct should I be using?

Regards
John

--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 99008 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!

just
var poster="/html/dog.html";
var animal='dog';


or use an iframe

markup---
<iframe src="" name="animal" ></iframe>
<a href="/html/dog.html" target="animal">Choose Poster of a dog</a>
<a href="html/cat.html" target="animal">Choose Poster of a cat</a>
and so on for sheep, bats, and crickets.
 

Top