Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with "href" and "onClick"

1 view
Skip to first unread message

Dmitri Chklovskii

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to

I have: <a href="display.html" onClick="top.server.Home()"> Display</a>

The java script function top.server.Home() works, but can't get page
display.html diplayed.

What is wrong?

Thank you.

parv

unread,
Dec 10, 1996, 3:00:00 AM12/10/96
to Dmitri Chklovskii

Dmitri Chklovskii wrote:
>
> I have: <a href="display.html" onClick="top.server.Home()"> Display</a>
>
> The java script function top.server.Home() works, but can't get page
> display.html diplayed.

what is happening? are you excecuting t.s.Home() in one frame & want
display.html in another? if you have the link in one window, then the
function should be excuted & the file should appear in the window. is
that you want & its not happening?

Dmitri Chklovskii

unread,
Dec 11, 1996, 3:00:00 AM12/11/96
to

Yes I am executing t.s.Home() in one frame and trying to display
"display.html"
in another. And I have link in one window then I click on it and
function is started
to execute and it displays appropriate result in appropriate frame, and
file
"display.html" should appear in another window, but it's not happening.

Thank you.

Jeroen Verschuuren

unread,
Dec 11, 1996, 3:00:00 AM12/11/96
to

You've to use the function top.server.Home() within the HREF like

<A HREF="javascript:top.server.Home()">your link</A>

I've something similar working at
http://www.ct.utwente.nl/~schuuren/Testpages

Jeroen
--
,,,
(o o)
~~~~~oOO~~(_)~~OOo~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ Jeroen Verschuuren ]
[ ]
[ mailto:j.l.m.ve...@utct.ct.utwente.nl ]
[ http://www.ct.utwente.nl/~schuuren ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~oOO~~( )~~OOo~~~~~~
@ @
/|||\

0 new messages