Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: window.open and shortcut paradox


Message #1 by "Jeff Jaeger" <jrj@c...> on Wed, 14 Feb 2001 13:55:15
on 14/2/01 1:55 pm, Jeff Jaeger at jrj@c... wrote:

> How to I avoid having a page open in a new window.  Recreate this as
> follows:
> 
> - Create a simple html page with a javascript var w = window.open
> ("http://www.ibm.com", "ibm")
> 
> - attach the above script to an object on the page (onclick)
> 
> - Save this page as page.html
> 
> - open this page (page.html) in IE5
> 
> - create a shortcut for page.html on your links bar (drag and drop)
> 
> - click on the object in your page.html to open the new ibm window
> 
> - click on the shortcut for page.html on your links bar on the original
> ie5 browser
> 
> page.html will open in the new ibm window, not the original browser
> window.  The other bookmarks will open in the original browser window,
> just not the page.html.  Is there a way to prevent this as.  Thanks!!!!
> 
> 
????? your creating a shortcut to a page that opens a new window
automatically.
The shortcut opens the page.html in your main browser window, which in turn
opens your ibm window.
None of your other shortcuts will have this page.html opening a new window
and therefore will open in the main window.


  Return to Index