Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a link and Maximize the window! 1

Status
Not open for further replies.

sera

Technical User
Jun 29, 2000
360
US
Hello All!
I would like the new window that a link opens in to maximize. I know that this is do-able using Javascript but I am wondering if it is possible with just the a href tag.
Here is my code:
[COLOR== red]
<a href = &quot; target = &quot;_blank&quot;>
<img src=&quot;images/map_server.gif&quot; alt=&quot;Click here to go to the map server.&quot; border = &quot;0&quot;>
[/color]

Thanks Sera
I often believe that...
My computer is possessed!
 
Umm ignore the color = red thing. I submitted too fast...it should be


<a href = &quot; target = &quot;_blank&quot;>
<img src=&quot;images/map_server.gif&quot; alt=&quot;Click here to go to the map server.&quot; border = &quot;0&quot;>


Thanks
Sera
I often believe that...
My computer is possessed!
 
No; you can't. You have to use javascript either on the page being opened or the page that's opening. To do it on the page being opened, put the javascript for opening the window in a function and call it like this:
<a href=&quot;javascript:function_name();&quot;>Open Window</a>
Why wouldn't that work??? If you wanted to do it on the page being opened, put this in the header.
self.moveTo(0,0);
self.resizeTo(Availwidth,Availheight);

Wouldn't one of those work??? You can't do it with strict html.

Rick If I have helped you just click the first link below to let me know :)
 
Yes that would work just fine. I just wanted to know if I could do it WITHOUT javascript. Curiosity. But you answered that aspect of it, and for that you get a star.
Thanks,
Sera Sera
I often believe that...
My computer is possessed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top