Forum

Heyxu Forum

Forum Dictionary / Programming / 網頁/網站程式 / DHtml /

怎麼指定連結時的 Target 參數

New Subject
Random
Previous
Next
|
怎麼指定連結時的 Target 參數

不好意思我想請問高手們:

我想在網站裡用動態的連結,然後用 window.location 去連結,可是他都會把原頁cover 過去,怎麼配會 Target 參數丫?

一般的連結寫法 <a href='....' target='_blank'>Link</a>
換成 Location 寫法該怎麼寫呢?

請大家幫幫忙!

  • Keywords : 過去, 連結寫法, 連結, 換成, 想請問高手, 怎麼配會, 參數丫, 去連結, 不好意思, 一般, window, target, location, _blank, Target, Location
0 0
2009-04-15T04:29:16+0000

魚戀秋波 Neil Y.K. :

Hi~

你可以用 window.open('url','_blank');的方式來實現唷!

0 0
2009-04-15T05:37:55+0000


  • Now, you can post comments by Facebook Account when your Heyxu account was logout or unvariable. whatever, we suggest to post comment by Heyxu Account to get more bounds to join new events of Heyxu
Comment
Verify
Comment
  • Auto Platform
    For better browsing experience, it will auto detects your device to display webpage.
  • Bug Report
    Tell us about the idea, problem and errors you found.
  • Copyright
    © 2009 Heyxu Multimedia, Inc - All rights reserved.
  • Revised Version
    V2.1.313
    02 Feb 2019 (GMT+8)