Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. beginner question

beginner question

Scheduled Pinned Locked Moved Web Development
questionjavascripthtmlhelplearning
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Newborn Naughtysaint
    wrote on last edited by
    #1

    help me please... i don't know why, when i use this...

    <a href="Javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location')">haha</a>

    my browser open the new page call javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location') X| and there is just only one word [object]. and also new window called utama.html(that's correct). but actually i want to open utama.html in the same window. so, can anybody help me to find the solution? thousands thanks >>when someone know more and more, they will feel they have weakness<<

    B B J 3 Replies Last reply
    0
    • N Newborn Naughtysaint

      help me please... i don't know why, when i use this...

      <a href="Javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location')">haha</a>

      my browser open the new page call javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location') X| and there is just only one word [object]. and also new window called utama.html(that's correct). but actually i want to open utama.html in the same window. so, can anybody help me to find the solution? thousands thanks >>when someone know more and more, they will feel they have weakness<<

      B Offline
      B Offline
      basementman
      wrote on last edited by
      #2

      I believe you are missing the colon after the javascript tag... anyway, you should wrap this into a function and call it like:  [onwards and upwards...](javascript:OpenMyWindow())

      1 Reply Last reply
      0
      • N Newborn Naughtysaint

        help me please... i don't know why, when i use this...

        <a href="Javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location')">haha</a>

        my browser open the new page call javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location') X| and there is just only one word [object]. and also new window called utama.html(that's correct). but actually i want to open utama.html in the same window. so, can anybody help me to find the solution? thousands thanks >>when someone know more and more, they will feel they have weakness<<

        B Offline
        B Offline
        Bjoern Graf
        wrote on last edited by
        #3

        See Making Pop-up Windows Accessible[^] for valid (and good, if that is valid in conjunction with popups :cool: ) way todo popups.

        1 Reply Last reply
        0
        • N Newborn Naughtysaint

          help me please... i don't know why, when i use this...

          <a href="Javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location')">haha</a>

          my browser open the new page call javascript:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location') X| and there is just only one word [object]. and also new window called utama.html(that's correct). but actually i want to open utama.html in the same window. so, can anybody help me to find the solution? thousands thanks >>when someone know more and more, they will feel they have weakness<<

          J Offline
          J Offline
          Jon Hulatt
          wrote on last edited by
          #4

          If you want to open "utama.html" in the same window, as you wrote, then miss out the javascript- you just want a link. If you actually *do* want it in a pop up, then go with this:- ... href="javascript**:window.open('utama.html','','height=760,width=1012,menubar,scrollbar,status,toolbar,location'); return false;**" ...

          #include <beer.h>

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups