javascript - open a link in a lightbox -



javascript - open a link in a lightbox -

how can open link view in lightbox? iv tryed demo no luck, ideas?

html:

<a href="http://rightjs.org/ui/lightbox/demo" rel="lightbox" title="loaded link" onclick="loadlightbox();">click</a>

jquery:

function loadlightbox(){ alert( "the link clicked" ); lightbox.load($('http://rightjs.org/ui/lightbox/demo')); }

the link live site live

link fiddle

link lightbox im using.

you need reference right.js well. see jsfiddle.

http://cdn.rightjs.org/right.js

javascript jquery html

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -