all groups > dotnet jscript > may 2004 >
You're in the

dotnet jscript

group:

Link in popup



Link in popup Steffen Loringer
5/5/2004 10:59:19 AM
dotnet jscript: 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
RE: Link in popup sharon
5/17/2004 2:51:05 AM
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

AddThis Social Bookmark Button