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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is - document.form1.target ?

Status
Not open for further replies.

RonenW

Programmer
Jan 17, 2001
4
0
0
IL
Hi,
can any one please explain the meaning of the "target" use ?(I'm handling someone else's code and I could not understand it)
document.form1.target

Thanks,
Ronen.
 
Hi RonenW,

The target attribute is use to define where the linked document will be opened, example like:
<a href=&quot; target=&quot;_blank&quot;>
this will open a new window.

however, i don't think you can assign the value of a javascript expression or variable to target. so &quot;document.form1.target&quot; seems to me that &quot;target&quot; is the Objectname in form1

hope this helps, Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top