Jump to content



- - - - -

A HREF command


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1   blagger

blagger
  • Members
  • 392 posts

Posted 08 September 2005 - 09:30 PM

i am using the A HREF command to produce links, which is working.

but, currently the new page opens in the same window. what i would like it to do is open it in a completly new window. so the current window will still be available.

this is what i have:

<A HREF="http://www.deviltronics.com/"><center><font color=#0033ff><big>Visit Our Website For All Your Computer Needs And Fantastic Deals On Sim Free Mobile Phones</big></font></center></A>

whatt do i need to modify to achieve opening in a new window?

#2   Beer Monster

Beer Monster
  • Members
  • 274 posts

Posted 08 September 2005 - 09:48 PM

blagger, on Sep 8 2005, 09:30 PM, said:

i am using the A HREF command to produce links, which is working.

but, currently the new page opens in the same window. what i would like it to do is open it in a completly new window. so the current window will still be available.

this is what i have:

<A HREF="http://www.deviltronics.com/"><center><font color=#0033ff><big>Visit Our Website For All Your Computer Needs And Fantastic Deals On Sim Free Mobile Phones</big></font></center></A>

whatt do i need to modify to achieve opening in a new window?

<{POST_SNAPBACK}>


target="_blank"

see http://www.htmlcodetutorial.com/linking/_A_TARGET.html
Light, in the absence of eyes, illuminates nothing.

#3   dave111

dave111
  • Members
  • 638 posts

Posted 08 September 2005 - 09:49 PM

Add target="_blank" into the a href tag

like this:

<A HREF="http://www.deviltronics.com/" target="_blank"><center><font color=#0033ff><big>Visit Our Website For All Your Computer Needs And Fantastic Deals On Sim Free Mobile Phones</big></font></center></A>

Edit:  Beer monster beat me to the punch :D

Edited by dave111, 08 September 2005 - 09:51 PM.


#4   MoisesZaragoza

MoisesZaragoza
  • Members
  • 897 posts

Posted 08 September 2005 - 09:51 PM

Your link will look like

<A HREF="page_That_you_want_To_open.php" target="_blank"> Link Name </a>

That's all you need

Edited by MoisesZaragoza, 08 September 2005 - 09:52 PM.

at the end of the day  the code will be good

#5   blagger

blagger
  • Members
  • 392 posts

Posted 08 September 2005 - 09:53 PM

thanks all!!