主题:  关于DW跳转表单的问题,加急!!!

极乐世界

职务:普通成员
等级:1
金币:0.0
发贴:113
注册:2001/6/1 0:04:54
#12002/3/20 13:33:14
用DW做网页时,想吧友情连接都放在一个下拉表单中,可是输出成网页后点击下拉菜单发现点击表单内的链接后,不能弹出新窗口打开期链接,怎样才能在新窗口打开下拉表单中的链接!请知道的朋友为俺指点指点,谢谢!



小乌龟

职务:普通成员
等级:2
金币:10.0
发贴:497
注册:2000/12/25 16:00:39
#22002/3/20 14:45:47



Juven

职务:普通成员
等级:2
金币:1.0
发贴:474
注册:2002/2/27 15:43:49
#32002/3/20 16:39:32
其实在标签中加入target="_blank",即:



5DDreamweaver版主

职务:版主
等级:3
金币:10.0
发贴:1031
注册:2001/10/13 14:38:50
#42002/3/20 21:08:34
form的target没用过,好像用得比较少,

帮你找了一下资料,至于行不行要试一下

TARGET NN all IE all HTML all

TARGET="windowOrFrameName" Optional

If the HTML document returned from the server after it processes the form submission is to be loaded into a window or frame other than the current window or frame, you can specify where the returned document should load by assigning a window or frame name to the TARGET attribute. Target frame names must be assigned to frames and windows as identifiers. Assign names to frames via the NAME attribute of the FRAME element; assign names to new windows via the second parameter of the window.open() scripting method. If you omit this attribute, the returned document replaces the document containing the FORM element. An identifier other than one belonging to an existing frame or window opens a new window for the returned document.

A FORM element can have only one returned document and one target. If you want a form submission to change the content of multiple frames, you can include a script in the returned document whose onLoad event handler loads or dynamically writes a document into a different frame. (Set the location.href property of each frame to a desired URL.)


Example

...



value
Case-sensitive identifier when the frame or window name has been assigned via the target element's NAME attribute. Four reserved target names act as constants: _blank Browser creates a new window for the destination document.
_parent Destination document replaces the current frame's framesetting document (if one exists; otherwise, it is treated as _self).
_self Destination document replaces the current document in its window or frame.
_top Destination document is to occupy the entire browser window, replacing any and all framesets that may be loaded (also treated as _self if there are no framesets defined in the window).


Default _self