Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]     Is it possible to display a link and use onclick() to call anchor_popup()?
#3

[eluser]John_Betong_002[/eluser]
'done it and quite chuffed:
 

comparison of output results
Code:
#=================================================
# Old code repeated a couple of thousand times
# filesize() = 582,317 bytes
#=================================================
<a
  href='java-script:void(0);'
  onclick="window.open('http://mysite.com/popup/url_001.html', '_blank',
  'width=800,height=600,scrollbars=yes,status=no,resizable=yes,screenx=200,screeny=100');"
>


#=================================================
# New code repeated same number of times
# filesize() = 164,680 bytes
#=================================================
<a
    href='#' on-click d(table->row->id)"
>
    table->row->name
&;gt;/a>



#=================================================
# bytes saved = 417,637 bytes
# reduction   =  28.28%
#=================================================
 
size matters Smile
 
 
 
edit: deliberate misspelling of java-script and on-click and still some of the java stuff has been removed.


Messages In This Thread
[SOLVED]     Is it possible to display a link and use onclick() to call anchor_popup()? - by El Forum - 07-11-2011, 06:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB