Posting webpages with no address display bar

johnsemlak

First Post
How do you post a link that normally pops up as one of those windows that doesn't have an address on the top?

For example, the 900 words columns by Jim Ward at Fast Forward Games. If you click on the link to the column, a window comes up with no address display bar.
 

log in or register to remove this ad

it is done with javascript.

[A href="javascript:window.open('window_url', 'window_name', 'toolbar =no,location=no, status=no,menubar=no,scrollbars=yes,width=800,height=600,resizable=yes');"]Link text here[/A]

replace [ with < and replace ] with >.

  • toolbar (yes/no) All your next, previews home site and other buttons on top of the browser.
  • location (yes/no) If I remember correctly this is the address bar.
  • status (yes/no) This is the statud bar att the bottom of the browser (if IE).
  • menubar (yes/no) this is the Archive/Edit/Display menus on the very top of the browser window.
  • scrollbar (yes/no) If you should display the scrollbar and handlers or not.
  • Width (numeric Integer) Width of the window that you'll open.
  • Height (numeric Integer) Height of the window that you'll open.
  • resizeable (yes/no) If the user should be allowed/able to resize the window hat opens.

hope that helps (there are more features to the window.open but that is all I can remember right now)
 
Last edited:

test

<a href="java script:window.open('http://www.fastforwardgames.com/900index.htm#');">900 Words</A>

This is me testing the advice in teh above post, trying to figure out how to post the link.

Edit: I can't figure this out. in the text posted above, where exactly to you place the url itself? In place of 'window_url".

Also, how can I find out the link in the first place if I can't see the address bar when I'm looking at the page (I've tried right clicking on the link and choosing "Copy Link Address"; is that a way to copy a link?)
 
Last edited:

The javascript is not a URL, so trying to use it as a link won't work (any more than trying to use a bit of random C++ code as a link would). The javascript there is basically a short program which is activated when clicked on directly and which then opens the relevant web page for you; at no point are you given the URL of the page.

Generally, I see absolutely no point in doing this. It's a hi-tech way of doing a very simple thing (i.e. posting a link), with the added bonus that it actualy causes problems for people. I'm sure that some of the web designers round here can come up with a valid reason for using javascript like that instead of just linking to the page in question, but I can't think of any reason other than that the web designer is just trying to make peoples' lives awkward.

Short version - you can't do what you're trying to do. They've made it impossible to link directly to the column.
 

OK, the reason the one above didn't work was because of the space in the word javascript.

This is I think because the forum has placed it there, to stop nasty code working on someone elses browser.

However replacing the [ with < etc the one below might work...

[a href="#" onclick="window.open('http://www.google.com','','');"]Google[/a]


<a href="#" onclick="window.open('http://www.google.com','','');">Google</a>

(although this will send the current page to the top of the page, again, not good... but if we're talking general how-to information then there you go)
 
Last edited:

Remove ads

Top