SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    London
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    applets & new windows

    I've got this script below which works perfectly but I was wondering if there was any way to get it to open in a new window when someone clicks on a story? I've tried putting in target="new" in the iframe code but that doesn't work.

    Any help appreciated.
    Jo


    <iframe height="25" marginwidth="0" width="450" scrolling="no" src="ticker/ticker.38253.stm" frameborder="0" marginheight="0">
    <applet height="25" code="lightticker2.class" codebase="/java/" width="450">
    </applet> </iframe>

  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jocanning
    I've got this script below which works perfectly but I was wondering if there was any way to get it to open in a new window when someone clicks on a story? I've tried putting in target="new" in the iframe code but that doesn't work.

    Any help appreciated.
    Jo


    <iframe height="25" marginwidth="0" width="450" scrolling="no" href="<A href="http://news.bbc.co.uk/ticker/ticker.38253.stm" target=_blank>ticker/ticker.38253.stm" frameborder="0" marginheight="0">
    <applet height="25" code="lightticker2.class" codebase="/java/" width="450">
    </applet> </iframe>
    iframe is an inline frame, are you trying to do something like this?
    Code:
     <script type="text/javascript">
      win = window.open('applet.html', '_blank', 'width=450, height=25');
    </script>
    open a new window?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •