Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Creating a false link to a blank page


Message #1 by wussap25@y... on Tue, 18 Jun 2002 05:19:42
--0-677523004-1024430192=:51705
Content-Type: text/plain; charset=us-ascii


 apparently i was writing the code wrong somehow, I still do not know what i had wrong, however I rewrote it and it now works.
Thanks for the help.
  Peter Riley <priley@t...> wrote: Don't know whether it's relevant but I have a similar function on my
site and there are 2 differences in the code: 1, there's a ';' at the
end of the 1st line in the function and 2, my window.open() call has 3
parameters

Peter Riley 

| -----Original Message-----
| From: wussap25@y... [mailto:wussap25@y...] 
| Sent: 18 June 2002 06:20
| To: JavaScript HowTo
| Subject: [javascript_howto] Creating a false link to a blank page
| 
| 
| hello everyone Im trying to create a new blank window that 
| would appear 
| when the user clicks a link on the site, the object for this 
| would be to 
| populate it via javascript after the new page has opened.
| The code is below:
| 
|
| var newWindow;
| 
| function newPage()
| {
| newWindow = window.open("","myNewWindow")
| newWindow.focus();
| return false;
| }
|  
| 
| 
| | newPage()" name=newlink href="">hello However when i type it in an error 
| appears saying that object was not 
| handled. could anyone help me out.
| Bye
| 
| ---
| 
| Improve your web design skills with these new books from Glasshaus.
| 
| Usable Web Menus 
| http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/th
eprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

  Return to Index