By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,127 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,127 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 <hrefcannot 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!
Mar 31 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 31 Mar, 07:47, "John" <john1...@yahoo.comwrote:
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 <hrefcannot 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.
Mar 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.