Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / May 2004

Tip: Looking for answers? Try searching our database.

Link in popup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steffen Loringer - 05 May 2004 09:59 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.