Hi all,
I'm trying to get a link working placed in a popup. But nothing happens
if I click on it. Is there something special to take care about?
The code is as follows:
var popup = window.createPopup();
var popupbody = popup.document.body-,
popupbody.innerhtml = "<a href='test.pdf'>MY Link</a>"
If I copy the link in the popup and paste it in another browser window
it works perfectly. Why not if I click into the popup?
Thanks for help and hints,
Steffen
sharon - 17 May 2004 10:51 GMT
try to create a javascript function in your original window
function jump()
document.location.href = "test.pdf"
and change the link in the popup to: <A href="javascript:parent.jump()">My Link</A
----- Steffen Loringer wrote: ----
Hi all
I'm trying to get a link working placed in a popup. But nothing happens
if I click on it. Is there something special to take care about
The code is as follows
var popup = window.createPopup()
var popupbody = popup.document.body-
popupbody.innerhtml = "<a href='test.pdf'>MY Link</a>
If I copy the link in the popup and paste it in another browser window
it works perfectly. Why not if I click into the popup
Thanks for help and hints
Steffe