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. Change window attribut from a URL

Change window attribut from a URL

Scheduled Pinned Locked Moved Web Development
question
5 Posts 2 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.
  • S Offline
    S Offline
    Spaz80
    wrote on last edited by
    #1

    Hello Is there any way that one can reffer to a new page with an URL and at the same time define how the window should look (eks: no toolbars, size etc). SomeFunction.TargetURL = "../PersonInfo.aspx (and define the window here?)" Spaz

    S J 2 Replies Last reply
    0
    • S Spaz80

      Hello Is there any way that one can reffer to a new page with an URL and at the same time define how the window should look (eks: no toolbars, size etc). SomeFunction.TargetURL = "../PersonInfo.aspx (and define the window here?)" Spaz

      S Offline
      S Offline
      Spaz80
      wrote on last edited by
      #2

      If this is not possible, is there any way to define these things in the startup off the new window? Spaz

      1 Reply Last reply
      0
      • S Spaz80

        Hello Is there any way that one can reffer to a new page with an URL and at the same time define how the window should look (eks: no toolbars, size etc). SomeFunction.TargetURL = "../PersonInfo.aspx (and define the window here?)" Spaz

        J Offline
        J Offline
        JKroschel
        wrote on last edited by
        #3

        I don't know if you mean pop-ups or just the next page. If you are looking to change a pop up, take a look at chapter seven of http://www.javascriptworld.com/scripts/index.html. If you want to change the appearance of the next page depending on what you click on, you could do that on the back end with ASP or something like that. The script would then generate custom CSS based on what the link asked for. For example: /page.asp?layout=1 vs. /page.asp?layout=2 In your asp code, you would have something like: <% layout=Request.QueryString("layout") If layout = 1 then %> (first style sheet) <% Else %> (second style sheet) <% End If %>

        S 1 Reply Last reply
        0
        • J JKroschel

          I don't know if you mean pop-ups or just the next page. If you are looking to change a pop up, take a look at chapter seven of http://www.javascriptworld.com/scripts/index.html. If you want to change the appearance of the next page depending on what you click on, you could do that on the back end with ASP or something like that. The script would then generate custom CSS based on what the link asked for. For example: /page.asp?layout=1 vs. /page.asp?layout=2 In your asp code, you would have something like: <% layout=Request.QueryString("layout") If layout = 1 then %> (first style sheet) <% Else %> (second style sheet) <% End If %>

          S Offline
          S Offline
          Spaz80
          wrote on last edited by
          #4

          thanx for the answer I allready have a windows that is open, I want to change som of the attributes off this window... I have found these commands self.resizeTo(600,300) scroll =no What I am looking for is a way to remove status line and toolbars, I want a plane window Spaz

          J 1 Reply Last reply
          0
          • S Spaz80

            thanx for the answer I allready have a windows that is open, I want to change som of the attributes off this window... I have found these commands self.resizeTo(600,300) scroll =no What I am looking for is a way to remove status line and toolbars, I want a plane window Spaz

            J Offline
            J Offline
            JKroschel
            wrote on last edited by
            #5

            You can do this: window.statusbar.visible = false; window.toolbar.visible = false; The only problem is that this script will only work with Netscape 4+. IE doesn't have a window object for either the status bar or the tool bar.

            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