Web Analytics Made Easy -
StatCounter New Window for HV Menu - CodingForum

Announcement

Collapse
No announcement yet.

New Window for HV Menu

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Window for HV Menu

    I have the HV Menu on my site, but I want to be able to open a new window when a link is selected. I have tried putting the target="_blank" in and target='_blank' and target=_blank but none of them work. Any suggestions?

  • #2
    Oops forgot to put in the link for hv menu

    http://dynamicdrive.com/dynamicindex1/hvmenu/index.htm

    Comment


    • #3
      Instead of "MyLink.html" use

      "javascript:NewWin=window.open('MyLink.html','NWin');window['NewWin'].focus()"

      as link in the menu

      Comment


      • #4
        Hey Ger, I can use that code but what do you add, and where, to open the new window in a specific size? ie 500 x 500

        Comment


        • #5
          "javascript:NewWin=window.open('http://www.cnn.com','NWin'[,'Options']);window['NewWin'].focus()"

          Options can be (among others) toolbar=yes/no, location=yes/no, status=yes/no, menubar=yes/no,scrollbars=yes/no, resizable=yes/no, top=#, left=#, width=#, height=#

          "javascript:NewWin=window.open('http://www.cnn.com','NWin','width=400, height=300');window['NewWin'].focus()"

          Comment

          Working...
          X