bb81189
06-07-2007, 11:25 AM
How do i go about making a link that opens the new page in a new window...?
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Link bb81189 06-07-2007, 11:25 AM How do i go about making a link that opens the new page in a new window...? Thanks sae 06-07-2007, 11:52 AM really this is against the accessability and web standards...you should not force a user to have to open something in a new window. That out of the way, you use target="_blank" <a href="link.html" target="_blank">Opens in new window</a> bb81189 06-07-2007, 12:11 PM Thank you, and i will remember that word of advice. I am using it know only because i am using it in a presentation that only a few people (5 to be exact) will see and have any use of. So once again Thank you! This board has been much help!!! ryanbutler 06-07-2007, 12:14 PM You should use JavaScript instead of target=_blank. JS: function popWindowBookstore(URL,windowName,windowFeatures){ newWindow=window.open('http://www.google.com','windowName','scrollbars=yes,width=800,height=500,resizable=yes,left=140,top=80,tool bar=no') } HTML: <a href="javascript:;" onClick="popWindowBookstore()">Click me</a> ray326 06-07-2007, 12:40 PM I like to stay away from the old javascript: protocol. <a href="#" onclick="popWindowBookstore();return false">Click me</a> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |