Click to See Complete Forum and Search --> : Trying to use java buttons to iframe
Lloyd Wilhelm
07-24-2003, 01:53 PM
I am trying to get pages to come up in an iframe.
And not in a new window as is occurring now.
The buttons are Java Script generated and I have
tried what I know. Any help would be appreciated.
Site i am having problems with
http://members.aol.com/lwilhelm/newmini.html
Change <a name="main" href="whatever.html"> to <a href="whatever.html" target="main">
[J]ona
Lloyd Wilhelm
07-24-2003, 03:37 PM
Tryed that did not work
Make it target="name_of_iframe" in the <A> tag. That should do it.
[J]ona
Lloyd Wilhelm
07-24-2003, 03:47 PM
I am lost, Have you looked at my page script?
not sure where to make modifications?
Were you use JavaScript to write the TDs, you have <A> tags inside of them. Change their targets.
[J]ona
Lloyd Wilhelm
07-24-2003, 04:01 PM
That is not the way it works. I make any changes There I get Script errors.
TD("main1.html","Welcome")
TR()
TD("main2.html","Photo Page")
TR()
TD("main3.html","About Me")
TR()
TD("mailto:LWilhelm@aol.com","EMAIL ")
TR()
Erhem, I'm talking about where you write the functions, not call them. Also, you should make sure you change the quotes to whatever will work (possibly need to escape them).
[J]ona
Lloyd Wilhelm
07-24-2003, 04:14 PM
this is how its set now
document.write('<a name="main" href='+end+'><font face=\"Arial\">'+cat+'</div></a></td>');
};
Yeah, and change "name" to "target."
[J]ona
Lloyd Wilhelm
07-24-2003, 04:28 PM
OK
document.write('<a target="main" href='+end+'><font face=\"Arial\">'+cat+'</div></a></td>'),
Now it works thank You.
You're forgiven. I mean, you're welcome.* :D
[J]ona