Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: open new window?


Message #1 by admin@n... on Wed, 25 Jul 2001 16:49:46
1. use a style give it a height and width
2. <input type="image" src ="send.gif" name="Submit" value="Submit"
onClick="javascript:window.open('...','...','...');">

Cheers
Kev,

Junior Developer
www.dsemotion.com
----- Original Message -----
From: <admin@n...>
To: "javascript" <javascript@p...>
Sent: Wednesday, July 25, 2001 4:49 PM
Subject: [javascript] open new window?


> I am using the following in my web page to open a new window:
>
> <center><form>
> <input type="button" value="Testing Tips"
> onClick="window.open
>
('testing_tips2.htm','mywindow','width=555,height=445,left=110,top=25,scree
> nX=0,screenY=100')">
> </form></center>
>
> Question 1:  Is there a way to size the "button" (I would like it
smaller)?
>
> Question 2:  How can I do this using an image or test instead of the
> button.  I have tried the following:
>
> <a target="newwindow" href="../testing_tips.htm">Testing Tips</a>
>
> <a href="javascript;new window()"><img src=image.gif" border="0"></a>
>
>
> but when the window opens, I get the menu bar and all the normal stuff
> when you open a new browser window. With the "form" script above, I just
> get a simple window, with no button bar or any of that stuff, which is
> what I want.
> Any ideas how I can get a simple pop-up window to open like that of
> the "form" script above does, but using an image or text to click on to
> open the pop-up window?
>
>
> ---

  Return to Index