Javascript:void - sintaksa

<a href="javascript:void(0)" onclick="window.open('welcome.html',
'welcome','width=300,height=200')">
Open</a>

Ovo gore je html. Kako ide ispravna sintaksa ako želim ovo strpati u php, npr.:

Najdalje što sam uspio je da mi link otvori novi prozor, ali u full veličini.

Hvala


OROR

[code=php]<span class="syntaxdefault"><?php&nbsp;<br /><br />$varijabla&nbsp;</span><span class="syntaxkeyword">=&nbsp;</span><span class="syntaxstring">'<a&nbsp;href="javascript:void(0)"&nbsp;onclick="window.open(\'welcome.html\',<br />\'welcome\',\'width=300,height=200\')">Open</a>'</span><span class="syntaxkeyword">;<br /><br />echo&nbsp;</span><span class="syntaxdefault">$varijabla</span><span class="syntaxkeyword">;<br /><br /></span><span class="syntaxdefault">?></span>[/code]

EDIT2 : Možeš umjesto javascript:void(0) stavit: javascript:;

OROR

EDIT2 : Možeš umjesto javascript:void(0) stavit: javascript:;

Hvala


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja